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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 1750873002: [MD settings] change ClearBrowsingData from a sub-page to a dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up 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/settings/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index b9ed9924a36b211475c6683b3309532419002985..4c70b1012b801c82468f3d2dca409335ae9cbb1e 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -55,6 +55,7 @@ Polymer({
/** @private */
onClearBrowsingDataTap_: function() {
- this.$.pages.setSubpageChain(['clear-browsing-data']);
+ this.$.pages.querySelector('settings-clear-browsing-data-page').$
+ .clearBrowsingDataDialog.open();
michaelpg 2016/03/02 23:19:37 eek, can we add a public function instead of using
dschuyler 2016/03/03 02:05:03 Done.
},
});

Powered by Google App Engine
This is Rietveld 408576698