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

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

Issue 2962823002: MD Settings: decouple page visibility from settings_ui.html. (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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 cr.define('settings', function() {
dpapad 2017/06/28 01:16:11 Can you add a compile target for this file?
scottchen 2017/06/28 20:51:49 Done.
6
7 var PageVisibility = {};
8
9 if (loadTimeData.getBoolean('isGuest')) {
10 PageVisibility = Object.assign(PageVisibility, {
dpapad 2017/06/28 01:16:11 Is the call to Object.assign necessary here? Isn't
scottchen 2017/06/28 20:51:49 Acknowledged.
11 passwordsAndForms: false,
12 people: false,
13 onStartup: false,
14 reset: false,
15 // <if expr="not chromeos">
16 appearance: false,
17 defaultBrowser: false,
18 advancedSettings: false,
19 // </if>
20 // <if expr="chromeos">
21 appearance: {
22 setWallpaper: false,
23 setTheme: false,
24 homeButton: false,
25 bookmarksBar: false,
26 pageZoom: false,
27 },
28 advancedSettings: true,
29 privacy: {
30 searchPrediction: false,
31 networkPrediction: false,
32 },
33 downloads: {
34 googleDrive: false,
35 },
36 // </if>
37 });
38 }
39
40 return {PageVisibility: PageVisibility};
dpapad 2017/06/28 01:16:11 Nit: Usually upper case is used to name a class, n
scottchen 2017/06/28 20:51:49 Done.
41 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698