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

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

Issue 2432383005: [MD settings] help button in content settings site lists (Closed)
Patch Set: review changes Created 4 years, 2 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 /** @private */ 88 /** @private */
89 onClearBrowsingDataTap_: function() { 89 onClearBrowsingDataTap_: function() {
90 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); 90 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA);
91 }, 91 },
92 92
93 /** @private */ 93 /** @private */
94 onDialogClosed_: function() { 94 onDialogClosed_: function() {
95 settings.navigateToPreviousRoute(); 95 settings.navigateToPreviousRoute();
96 }, 96 },
97 97
98 /** @private */
99 onHelpTap_: function() {
100 window.open(
101 'https://support.google.com/chrome/?p=settings_manage_exceptions');
102 },
103
98 <if expr="_google_chrome and not chromeos"> 104 <if expr="_google_chrome and not chromeos">
99 /** @private */ 105 /** @private */
100 onMetricsReportingCheckboxTap_: function() { 106 onMetricsReportingCheckboxTap_: function() {
101 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); 107 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance();
102 var enabled = this.$.metricsReportingCheckbox.checked; 108 var enabled = this.$.metricsReportingCheckbox.checked;
103 browserProxy.setMetricsReportingEnabled(enabled); 109 browserProxy.setMetricsReportingEnabled(enabled);
104 }, 110 },
105 111
106 /** 112 /**
107 * @param {!MetricsReporting} metricsReporting 113 * @param {!MetricsReporting} metricsReporting
(...skipping 22 matching lines...) Expand all
130 * The sub-page title for the site or content settings. 136 * The sub-page title for the site or content settings.
131 * @return {string} 137 * @return {string}
132 * @private 138 * @private
133 */ 139 */
134 siteSettingsPageTitle_: function() { 140 siteSettingsPageTitle_: function() {
135 return loadTimeData.getBoolean('enableSiteSettings') ? 141 return loadTimeData.getBoolean('enableSiteSettings') ?
136 loadTimeData.getString('siteSettings') : 142 loadTimeData.getString('siteSettings') :
137 loadTimeData.getString('contentSettings'); 143 loadTimeData.getString('contentSettings');
138 }, 144 },
139 }); 145 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698