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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui_types.js

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments + bug fix Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_ui/settings_ui_types.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui_types.js b/chrome/browser/resources/settings/settings_ui/settings_ui_types.js
new file mode 100644
index 0000000000000000000000000000000000000000..d517015c2503e4d7a77ae7b8281c7049fd4212d8
--- /dev/null
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui_types.js
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Closure typedefs for settings_ui.
+ */
+
+/**
+ * Specifies page visibility in guest mode in cr and cros.
+ * @typedef {{
+ * advancedSettings: (boolean|undefined),
dpapad 2016/07/22 18:33:04 Why are all top-level boolean on this object, unde
Moe 2016/07/22 20:53:50 I've seen this elsewhere too. Look at sync_browser
dpapad 2016/07/22 22:40:48 My thinking was that there is only one place where
+ * appearance: (boolean|undefined|{
+ * bookmarksBar: boolean,
+ * homeButton: boolean,
+ * pageZoom: boolean,
+ * setTheme: boolean,
+ * setWallpaper: boolean,
+ * }),
+ * dateTime: (boolean|undefined|{
+ * timeZoneSelector: boolean,
+ * }),
+ * defaultBrowser: (boolean|undefined),
+ * downloads: (undefined|{
+ * googleDrive: boolean,
+ * }),
+ * onStartup: (boolean|undefined),
+ * passwordsAndForms: (boolean|undefined),
+ * people: (boolean|undefined),
+ * privacy: (undefined|{
dpapad 2016/07/22 18:33:04 If you decide to pass subsets of the GuestModePage
Moe 2016/07/22 20:53:49 That's a good idea! but I'm not sure if it's neede
dpapad 2016/07/22 22:40:48 I am seeing several |pageVisibility| variables in
Moe 2016/07/24 23:54:26 I'd go with option 2. The first option won't work
+ * networkPrediction: boolean,
+ * searchPrediction: boolean,
+ * }),
+ * reset:(boolean|undefined),
+ * }}
+ */
+var GuestModePageVisibility;

Powered by Google App Engine
This is Rietveld 408576698