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

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

Issue 2689303002: MD Settings: Content Settings: Support guest mode. (Closed)
Patch Set: Rebase Created 3 years, 10 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 13 matching lines...) Expand all
24 type: Object, 24 type: Object,
25 notify: true, 25 notify: true,
26 }, 26 },
27 27
28 /** 28 /**
29 * Dictionary defining page visibility. 29 * Dictionary defining page visibility.
30 * @type {!PrivacyPageVisibility} 30 * @type {!PrivacyPageVisibility}
31 */ 31 */
32 pageVisibility: Object, 32 pageVisibility: Object,
33 33
34 /** @private */
35 isGuest_: {
36 type: Boolean,
37 value: function() { return loadTimeData.getBoolean('isGuest'); }
38 },
39
34 // <if expr="_google_chrome and not chromeos"> 40 // <if expr="_google_chrome and not chromeos">
35 // TODO(dbeam): make a virtual.* pref namespace and set/get this normally 41 // TODO(dbeam): make a virtual.* pref namespace and set/get this normally
36 // (but handled differently in C++). 42 // (but handled differently in C++).
37 /** @private {chrome.settingsPrivate.PrefObject} */ 43 /** @private {chrome.settingsPrivate.PrefObject} */
38 metricsReportingPref_: { 44 metricsReportingPref_: {
39 type: Object, 45 type: Object,
40 value: function() { 46 value: function() {
41 // TODO(dbeam): this is basically only to appease PrefControlBehavior. 47 // TODO(dbeam): this is basically only to appease PrefControlBehavior.
42 // Maybe add a no-validate attribute instead? This makes little sense. 48 // Maybe add a no-validate attribute instead? This makes little sense.
43 return /** @type {chrome.settingsPrivate.PrefObject} */({}); 49 return /** @type {chrome.settingsPrivate.PrefObject} */({});
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return value ? this.i18n('siteSettingsProtectedContentEnable') 216 return value ? this.i18n('siteSettingsProtectedContentEnable')
211 : this.i18n('siteSettingsBlocked'); 217 : this.i18n('siteSettingsBlocked');
212 }, 218 },
213 219
214 /** @private */ 220 /** @private */
215 getProtectedContentIdentifiersLabel_: function(value) { 221 getProtectedContentIdentifiersLabel_: function(value) {
216 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') 222 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers')
217 : this.i18n('siteSettingsBlocked'); 223 : this.i18n('siteSettingsBlocked');
218 }, 224 },
219 }); 225 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698