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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge 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
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),
11 * defaultBrowser: (boolean|undefined), 11 * defaultBrowser: (boolean|undefined),
12 * downloads: (undefined|DownloadsPageVisibility), 12 * downloads: (boolean|undefined|DownloadsPageVisibility),
13 * onStartup: (boolean|undefined), 13 * onStartup: (boolean|undefined),
14 * passwordsAndForms: (boolean|undefined), 14 * passwordsAndForms: (boolean|undefined),
15 * people: (boolean|undefined), 15 * people: (boolean|undefined),
16 * privacy: (undefined|PrivacyPageVisibility), 16 * privacy: (boolean|undefined|PrivacyPageVisibility),
17 * reset:(boolean|undefined), 17 * reset:(boolean|undefined),
18 * }} 18 * }}
19 */ 19 */
20 var GuestModePageVisibility; 20 var GuestModePageVisibility;
21 21
22 /** 22 /**
23 * @typedef {{ 23 * @typedef {{
24 * bookmarksBar: boolean, 24 * bookmarksBar: boolean,
25 * homeButton: boolean, 25 * homeButton: boolean,
26 * pageZoom: boolean, 26 * pageZoom: boolean,
(...skipping 19 matching lines...) Expand all
46 46
47 /** 47 /**
48 * @typedef {{ 48 * @typedef {{
49 * networkPrediction: boolean, 49 * networkPrediction: boolean,
50 * searchPrediction: boolean, 50 * searchPrediction: boolean,
51 * }} 51 * }}
52 */ 52 */
53 var PrivacyPageVisibility; 53 var PrivacyPageVisibility;
54 54
55 cr.define('settings', function() { 55 cr.define('settings', function() {
56
57 /** 56 /**
58 * Dictionary defining page visibility. 57 * Dictionary defining page visibility.
59 * This is only set when in guest mode. All pages are visible when not set 58 * 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. 59 * because polymer only notifies after a property is set.
61 * @type {!GuestModePageVisibility} 60 * @type {!GuestModePageVisibility}
62 */ 61 */
63 var pageVisibility; 62 var pageVisibility;
64 63
65 if (loadTimeData.getBoolean('isGuest')) { 64 if (loadTimeData.getBoolean('isGuest')) {
66 // "if not chromeos" and "if chromeos" in two completely separate blocks 65 // "if not chromeos" and "if chromeos" in two completely separate blocks
(...skipping 29 matching lines...) Expand all
96 }, 95 },
97 downloads: { 96 downloads: {
98 googleDrive: false, 97 googleDrive: false,
99 }, 98 },
100 }; 99 };
101 // </if> 100 // </if>
102 } 101 }
103 102
104 return {pageVisibility: pageVisibility}; 103 return {pageVisibility: pageVisibility};
105 }); 104 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698