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

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

Issue 1831093002: MD Settings: Certificate manager, respect USE_NSS_CERTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move ifdef to JS file. Created 4 years, 8 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 * Example: 10 * Example:
(...skipping 24 matching lines...) Expand all
35 notify: true, 35 notify: true,
36 }, 36 },
37 }, 37 },
38 38
39 ready: function() { 39 ready: function() {
40 this.ContentSettingsTypes = settings.ContentSettingsTypes; 40 this.ContentSettingsTypes = settings.ContentSettingsTypes;
41 }, 41 },
42 42
43 /** @private */ 43 /** @private */
44 onManageCertificatesTap_: function() { 44 onManageCertificatesTap_: function() {
45 <if expr="use_nss_certs">
45 this.$.pages.setSubpageChain(['manage-certificates']); 46 this.$.pages.setSubpageChain(['manage-certificates']);
47 </if>
48 <if expr="not use_nss_certs">
49 // TODO(dpapad): Launch native certificate manager here.
50 </if>
46 }, 51 },
47 52
48 /** @private */ 53 /** @private */
49 onSiteSettingsTap_: function() { 54 onSiteSettingsTap_: function() {
50 this.$.pages.setSubpageChain(['site-settings']); 55 this.$.pages.setSubpageChain(['site-settings']);
51 }, 56 },
52 57
53 /** @private */ 58 /** @private */
54 onClearBrowsingDataTap_: function() { 59 onClearBrowsingDataTap_: function() {
55 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); 60 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open();
56 }, 61 },
57 }); 62 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698