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

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

Issue 2450423002: [MD settings] cookie and site data from dialog to subpage (Closed)
Patch Set: review nit Created 4 years, 1 month 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 onManageCertificatesTap_: function() { 73 onManageCertificatesTap_: function() {
74 <if expr="use_nss_certs"> 74 <if expr="use_nss_certs">
75 settings.navigateTo(settings.Route.CERTIFICATES); 75 settings.navigateTo(settings.Route.CERTIFICATES);
76 </if> 76 </if>
77 <if expr="is_win or is_macosx"> 77 <if expr="is_win or is_macosx">
78 settings.PrivacyPageBrowserProxyImpl.getInstance(). 78 settings.PrivacyPageBrowserProxyImpl.getInstance().
79 showManageSSLCertificates(); 79 showManageSSLCertificates();
80 </if> 80 </if>
81 }, 81 },
82 82
83 /**
84 * This is a workaround to connect the remove all button to the subpage.
85 * @private
86 */
87 onRemoveAllCookiesFromSite_: function() {
88 var node = /** @type {?SiteDataDetailsSubpageElement} */(this.$$(
89 'site-data-details-subpage'));
90 if (node)
91 node.removeAll();
92 },
93
83 /** @private */ 94 /** @private */
84 onSiteSettingsTap_: function() { 95 onSiteSettingsTap_: function() {
85 settings.navigateTo(settings.Route.SITE_SETTINGS); 96 settings.navigateTo(settings.Route.SITE_SETTINGS);
86 }, 97 },
87 98
88 /** @private */ 99 /** @private */
89 onClearBrowsingDataTap_: function() { 100 onClearBrowsingDataTap_: function() {
90 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); 101 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA);
91 }, 102 },
92 103
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * The sub-page title for the site or content settings. 147 * The sub-page title for the site or content settings.
137 * @return {string} 148 * @return {string}
138 * @private 149 * @private
139 */ 150 */
140 siteSettingsPageTitle_: function() { 151 siteSettingsPageTitle_: function() {
141 return loadTimeData.getBoolean('enableSiteSettings') ? 152 return loadTimeData.getBoolean('enableSiteSettings') ?
142 loadTimeData.getString('siteSettings') : 153 loadTimeData.getString('siteSettings') :
143 loadTimeData.getString('contentSettings'); 154 loadTimeData.getString('contentSettings');
144 }, 155 },
145 }); 156 });
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