diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-01-25 11:39:07 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-01-25 15:20:42 +0000 |
commit | 6c91641271e536ffaa88a1dff5127e42ee99a91e (patch) | |
tree | 703d9dd49602377ddc90cbf886aad37913f2496b /chromium/chrome/browser/resources/history/other_devices.js | |
parent | b145b7fafd36f0c260d6a768c81fc14e32578099 (diff) | |
download | qtwebengine-chromium-6c91641271e536ffaa88a1dff5127e42ee99a91e.tar.gz |
BASELINE: Update Chromium to 49.0.2623.23
Also adds missing printing sources.
Change-Id: I3726b8f0c7d6751c9fc846096c571fadca7108cd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'chromium/chrome/browser/resources/history/other_devices.js')
-rw-r--r-- | chromium/chrome/browser/resources/history/other_devices.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chromium/chrome/browser/resources/history/other_devices.js b/chromium/chrome/browser/resources/history/other_devices.js index 15d7d47a48c..8f46192d61f 100644 --- a/chromium/chrome/browser/resources/history/other_devices.js +++ b/chromium/chrome/browser/resources/history/other_devices.js @@ -24,7 +24,8 @@ COLLAPSE_SESSION: 6, EXPAND_SESSION: 7, OPEN_ALL: 8, - LIMIT: 9 // Should always be the last one. + HAS_FOREIGN_DATA: 9, + LIMIT: 10 // Should always be the last one. }; /** @@ -353,6 +354,7 @@ function DevicesView() { this.rowHeights_ = [NB_ENTRIES_FIRST_ROW_COLUMN]; this.focusGrids_ = []; this.updateSignInState(loadTimeData.getBoolean('isUserSignedIn')); + this.hasSeenForeignData_ = false; recordUmaEvent_(HISTOGRAM_EVENT.INITIALIZED); } @@ -379,6 +381,14 @@ DevicesView.prototype.setSessionList = function(sessionList) { for (var i = 0; i < sessionList.length; i++) this.devices_.push(new Device(sessionList[i], this)); this.displayResults_(); + + // This metric should only be emitted if we see foreign data, and it should + // only be emitted once per page refresh. Flip flag to remember because this + // method is called upon any update. + if (!this.hasSeenForeignData_ && sessionList.length > 0) { + this.hasSeenForeignData_ = true; + recordUmaEvent_(HISTOGRAM_EVENT.HAS_FOREIGN_DATA); + } }; |