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

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

Issue 2963333002: MD Settings: fix side-menu items not visible. (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * Specifies page visibility in guest mode in cr and cros. 6 * Specifies page visibility in guest mode in cr and cros.
7 * @typedef {{ 7 * @typedef {{
8 * advancedSettings: (boolean|undefined), 8 * advancedSettings: (boolean|undefined),
9 * appearance: (boolean|undefined|AppearancePageVisibility), 9 * appearance: (boolean|undefined|AppearancePageVisibility),
10 * dateTime: (boolean|undefined|DateTimePageVisibility), 10 * dateTime: (boolean|undefined|DateTimePageVisibility),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 var PrivacyPageVisibility; 53 var PrivacyPageVisibility;
54 54
55 cr.define('settings', function() { 55 cr.define('settings', function() {
56 56
57 /** 57 /**
58 * Dictionary defining page visibility. 58 * Dictionary defining page visibility.
59 * This is only set when in guest mode. All pages are visible when not set 59 * This is only set when in guest mode. All pages are visible when not set
60 * because polymer only notifies after a property is set. 60 * because polymer only notifies after a property is set.
61 * @type {!GuestModePageVisibility} 61 * @type {!GuestModePageVisibility}
62 */ 62 */
63 var pageVisibility = {}; 63 var pageVisibility;
64 64
65 if (loadTimeData.getBoolean('isGuest')) { 65 if (loadTimeData.getBoolean('isGuest')) {
66 // "if not chromeos" and "if chromeos" in two completely separate blocks 66 // "if not chromeos" and "if chromeos" in two completely separate blocks
67 // to work around closure compiler. 67 // to work around closure compiler.
68 // <if expr="not chromeos"> 68 // <if expr="not chromeos">
69 pageVisibility = { 69 pageVisibility = {
70 passwordsAndForms: false, 70 passwordsAndForms: false,
71 people: false, 71 people: false,
72 onStartup: false, 72 onStartup: false,
73 reset: false, 73 reset: false,
(...skipping 22 matching lines...) Expand all
96 }, 96 },
97 downloads: { 97 downloads: {
98 googleDrive: false, 98 googleDrive: false,
99 }, 99 },
100 }; 100 };
101 // </if> 101 // </if>
102 } 102 }
103 103
104 return {pageVisibility: pageVisibility}; 104 return {pageVisibility: pageVisibility};
105 }); 105 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698