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

Side by Side Diff: chrome/common/pref_names.cc

Issue 7520023: Converted IncognitoForced boolean policy into IncognitoModeAvailability enum policy. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« chrome/browser/ui/browser.cc ('K') | « chrome/common/pref_names.h ('k') | 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 namespace prefs { 7 namespace prefs {
8 8
9 // *************** PROFILE PREFS *************** 9 // *************** PROFILE PREFS ***************
10 // These are attached to the user profile 10 // These are attached to the user profile
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Boolean that is true when SafeBrowsing is enabled. 156 // Boolean that is true when SafeBrowsing is enabled.
157 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 157 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
158 158
159 // Boolean that is true when SafeBrowsing Malware Report is enabled. 159 // Boolean that is true when SafeBrowsing Malware Report is enabled.
160 const char kSafeBrowsingReportingEnabled[] = 160 const char kSafeBrowsingReportingEnabled[] =
161 "safebrowsing.reporting_enabled"; 161 "safebrowsing.reporting_enabled";
162 162
163 // Boolean that is true when Incognito support is enabled. 163 // Boolean that is true when Incognito support is enabled.
164 const char kIncognitoEnabled[] = "incognito.enabled"; 164 const char kIncognitoEnabled[] = "incognito.enabled";
165 165
166 // Boolean that specifies if all user sessions should be forced into Incognito. 166 // Enum that specifies whether Incognito mode is:
167 const char kIncognitoForced[] = "incognito.forced"; 167 // 0 - Enabled. Default behaviour. Default mode is available on demand.
168 // 1 - Disabled. Used cannot browse pages in Incognito mode.
169 // 2 - Forced. All pages/sessions are forced into Incognito.
170 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
168 171
169 // Boolean that is true when Suggest support is enabled. 172 // Boolean that is true when Suggest support is enabled.
170 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 173 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
171 174
172 // Boolean that indicates whether the browser should put up a confirmation 175 // Boolean that indicates whether the browser should put up a confirmation
173 // window when the user is attempting to quit. Mac only. 176 // window when the user is attempting to quit. Mac only.
174 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 177 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
175 178
176 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie 179 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
177 // blocking policy. This has been superseded by kDefaultContentSettings + 180 // blocking policy. This has been superseded by kDefaultContentSettings +
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 // Whether user-specified handlers for protocols and content types can be 1435 // Whether user-specified handlers for protocols and content types can be
1433 // specified. 1436 // specified.
1434 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 1437 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
1435 1438
1436 // Integers that specify the policy refresh rate for device- and user-policy in 1439 // Integers that specify the policy refresh rate for device- and user-policy in
1437 // milliseconds. Not all values are meaningful, so it is clamped to a sane range 1440 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
1438 // by the cloud policy subsystem. 1441 // by the cloud policy subsystem.
1439 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 1442 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
1440 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; 1443 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
1441 } // namespace prefs 1444 } // namespace prefs
OLDNEW
« chrome/browser/ui/browser.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698