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

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

Issue 1585473003: MD History: Added a clear browsing data button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: comments Created 4 years, 10 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/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index daad9b0c891d961189fda8563c5723a1b42cf52e..9655534c1c40c6f65cc91d00a0341952987a17d3 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -33,6 +33,14 @@ Polymer({
this.fire('unselect-all');
},
+ /**
+ * Relocates the user to the clear browsing data section of the settings page.
+ * @private
+ */
+ onClearBrowsingDataTap_: function() {
+ window.location.href = 'chrome://settings/clearBrowserData';
+ },
+
numberOfItemsSelected_: function(count) {
return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : '';
}

Powered by Google App Engine
This is Rietveld 408576698