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

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: the formatting thing Created 4 years, 11 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 38b1c12e8c71d2c9fe514f087409b95dce27112b..a1c90832dc56b0d22dc1fc55a7441cc51ed10939 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -31,5 +31,12 @@ Polymer({
onClearSelectionTap_: function() {
this.fire('unselect-all');
+ },
+
+ /**
+ * Relocates the user to the clear browsing data section of the settings page.
+ */
+ clearBrowsingData: function() {
+ window.location.href = 'chrome://settings/clearBrowserData';
}
});

Powered by Google App Engine
This is Rietveld 408576698