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

Side by Side Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2224163002: Settings Router Refactor: Replace route.subpage usage with route.path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-privacy-page' is the settings page containing privacy and 7 * 'settings-privacy-page' is the settings page containing privacy and
8 * security settings. 8 * security settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 this.addWebUIListener('metrics-reporting-change', boundSetMetricsReporting); 49 this.addWebUIListener('metrics-reporting-change', boundSetMetricsReporting);
50 50
51 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); 51 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance();
52 browserProxy.getMetricsReporting().then(boundSetMetricsReporting); 52 browserProxy.getMetricsReporting().then(boundSetMetricsReporting);
53 </if> 53 </if>
54 }, 54 },
55 55
56 /** @protected */ 56 /** @protected */
57 currentRouteChanged: function() { 57 currentRouteChanged: function() {
58 this.showClearBrowsingDataDialog_ = 58 this.showClearBrowsingDataDialog_ =
59 settings.getCurrentRoute().dialog == 'clear-browsing-data'; 59 settings.getCurrentRoute() == settings.Route.CLEAR_BROWSER_DATA;
60 }, 60 },
61 61
62 /** @private */ 62 /** @private */
63 onManageCertificatesTap_: function() { 63 onManageCertificatesTap_: function() {
64 <if expr="use_nss_certs"> 64 <if expr="use_nss_certs">
65 settings.navigateTo(settings.Route.CERTIFICATES); 65 settings.navigateTo(settings.Route.CERTIFICATES);
66 </if> 66 </if>
67 <if expr="is_win or is_macosx"> 67 <if expr="is_win or is_macosx">
68 settings.PrivacyPageBrowserProxyImpl.getInstance(). 68 settings.PrivacyPageBrowserProxyImpl.getInstance().
69 showManageSSLCertificates(); 69 showManageSSLCertificates();
(...skipping 25 matching lines...) Expand all
95 95
96 /** 96 /**
97 * @param {!MetricsReporting} metricsReporting 97 * @param {!MetricsReporting} metricsReporting
98 * @private 98 * @private
99 */ 99 */
100 setMetricsReporting_: function(metricsReporting) { 100 setMetricsReporting_: function(metricsReporting) {
101 this.metricsReporting_ = metricsReporting; 101 this.metricsReporting_ = metricsReporting;
102 }, 102 },
103 </if> 103 </if>
104 }); 104 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698