| 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 9df2c5e6b6f8ec240097b0e3038f03a84396f00b..5ae44b61e0c102b874605467dd009bcbd8d233d9 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 HistoryPageView enum in histograms.xml.
|
| * This enum is append-only.
|
| @@ -36,6 +49,30 @@ var HistoryPageViewHistogram = {
|
| };
|
|
|
| /**
|
| + * @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 = {
|
|
|