Chromium Code Reviews| 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 afdd7b4a2c66209cbf987691dffaf01574ae09d4..5ff7b698ac31502c8529e189b0d7f7d6cfb306ea 100644 |
| --- a/chrome/browser/resources/settings/privacy_page/privacy_page.js |
| +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js |
| @@ -62,7 +62,7 @@ Polymer({ |
| onManageCertificatesTap_: function() { |
| <if expr="use_nss_certs"> |
| var pages = /** @type {!SettingsAnimatedPagesElement} */(this.$.pages); |
| - pages.setSubpageChain(['manage-certificates']); |
| + settings.navigateTo(settings.Route.CERTIFICATES); |
| </if> |
| <if expr="is_win or is_macosx"> |
| settings.PrivacyPageBrowserProxyImpl.getInstance(). |
| @@ -73,17 +73,12 @@ Polymer({ |
| /** @private */ |
| onSiteSettingsTap_: function() { |
| var pages = /** @type {!SettingsAnimatedPagesElement} */(this.$.pages); |
| - pages.setSubpageChain(['site-settings']); |
| + settings.navigateTo(settings.Route.SITE_SETTINGS); |
| }, |
| /** @private */ |
| onClearBrowsingDataTap_: function() { |
| - this.currentRoute = { |
| - page: 'advanced', |
| - section: 'privacy', |
| - subpage: [], |
| - dialog: 'clear-browsing-data', |
| - }; |
| + settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); |
| }, |
| /** |
| @@ -94,11 +89,6 @@ Polymer({ |
| if (Polymer.dom(event).rootTarget.tagName != 'CR-DIALOG') |
| return; |
| - this.currentRoute = { |
| - page: 'advanced', |
| - section: 'privacy', |
| - subpage: [], |
| - // Drop dialog key. |
| - }; |
| + settings.navigateTo(settings.Route.PRIVACY); |
|
Dan Beam
2016/07/23 00:17:11
nit:
if (Polymer.dom(event).rootTarget.tagName ==
tommycli
2016/07/25 16:47:20
Done.
|
| }, |
| }); |