Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2329)

Unified Diff: chrome/browser/resources/md_history/constants.js

Issue 2255033002: [MD History] Copy stats from the old history page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sidebar_stats
Patch Set: add_stats Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/constants.js
diff --git a/chrome/browser/resources/md_history/constants.js b/chrome/browser/resources/md_history/constants.js
index 2880d5c290fb1ef20c91a523b6b1a8e9ca2f9e52..0158a6f3ded56616afa56ea5106e303db4048667 100644
--- a/chrome/browser/resources/md_history/constants.js
+++ b/chrome/browser/resources/md_history/constants.js
@@ -21,6 +21,19 @@ var BROWSING_GAP_TIME = 15 * 60 * 1000;
var TITLE_MAX_LENGTH = 300;
/**
+ * The largest bucket value for UMA histogram, based on entry ID. All entries
+ * with IDs greater than this will be included in this bucket.
+ * @const
+ */
+var UMA_MAX_BUCKET_VALUE = 1000;
+
+/**
+ * The largest bucket value for a UMA histogram that is a subset of above.
+ * @const
+ */
+var UMA_MAX_SUBSET_BUCKET_VALUE = 100;
+
+/**
* Histogram buckets for UMA tracking of which view is being shown to the user.
* Keep this in sync with the HistoryView enum in histograms.xml.
* @enum {number}
@@ -35,6 +48,30 @@ var HistoryViewHistogram = {
};
/**
+ * @const
+ */
+var SYNCED_TABS_HISTOGRAM_NAME = 'HistoryPage.OtherDevicesMenu';
+
+/**
+ * Histogram buckets for UMA tracking of synced tabs.
+ * @const
+ */
+var SyncedTabsHistogram = {
+ INITIALIZED: 0,
+ SHOW_MENU_DEPRECATED: 1,
+ LINK_CLICKED: 2,
+ LINK_RIGHT_CLICKED: 3,
+ SESSION_NAME_RIGHT_CLICKED_DEPRECATED: 4,
+ SHOW_SESSION_MENU: 5,
+ COLLAPSE_SESSION: 6,
+ EXPAND_SESSION: 7,
+ OPEN_ALL: 8,
+ HAS_FOREIGN_DATA: 9,
+ HIDE_FOR_NOW: 10,
+ LIMIT: 11 // Should always be the last one.
+};
+
+/**
* @enum {number}
*/
var HistoryRange = {

Powered by Google App Engine
This is Rietveld 408576698