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

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

Issue 2238163002: [MD History] Add UMA stats for switching views and the CBD button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@start_focus_in_search_bar
Patch Set: fix_test 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/side_bar.js
diff --git a/chrome/browser/resources/md_history/side_bar.js b/chrome/browser/resources/md_history/side_bar.js
index 24443025905b2133633eae6984041ba7f590c04a..829b554beec5271ad6d67c31e9be7175c2c8602c 100644
--- a/chrome/browser/resources/md_history/side_bar.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -6,26 +6,20 @@ Polymer({
is: 'history-side-bar',
properties: {
- selectedPage: {
- type: String,
- notify: true
- },
+ selectedPage: {type: String, notify: true},
route: Object,
showFooter: Boolean,
// If true, the sidebar is contained within an app-drawer.
- drawer: {
- type: Boolean,
- reflectToAttribute: true
- },
+ drawer: {type: Boolean, reflectToAttribute: true},
},
- /** @private */
- onSelectorActivate_: function() {
- this.fire('history-close-drawer');
- },
+ /**
+ * @private
+ */
+ onSelectorActivate_: function() { this.fire('history-close-drawer'); },
/**
* Relocates the user to the clear browsing data section of the settings page.
@@ -33,6 +27,8 @@ Polymer({
* @private
*/
onClearBrowsingDataTap_: function(e) {
+ md_history.BrowserService.getInstance().recordAction(
+ 'HistoryPage_InitClearBrowsingData');
md_history.BrowserService.getInstance().openClearBrowsingData();
e.preventDefault();
},
@@ -41,7 +37,5 @@ Polymer({
* @param {Object} route
* @private
*/
- getQueryString_: function(route) {
- return window.location.search;
- }
+ getQueryString_: function(route) { return window.location.search; }
});
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/browser/resources/md_history/synced_device_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698