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

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

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 | « chrome/common/pref_names.h ('k') | chrome/common/url_constants.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
11 #include "extensions/features/features.h"
11 12
12 namespace prefs { 13 namespace prefs {
13 14
14 // *************** PROFILE PREFS *************** 15 // *************** PROFILE PREFS ***************
15 // These are attached to the user profile 16 // These are attached to the user profile
16 17
17 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) 18 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST)
18 // A preference to keep list of Android apps and their state. 19 // A preference to keep list of Android apps and their state.
19 const char kArcApps[] = "arc.apps"; 20 const char kArcApps[] = "arc.apps";
20 // A preference to store backup and restore state for Android apps. 21 // A preference to store backup and restore state for Android apps.
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 // Whether Easy Unlock is enabled. 1263 // Whether Easy Unlock is enabled.
1263 const char kEasyUnlockEnabled[] = "easy_unlock.enabled"; 1264 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1264 1265
1265 // Preference storing Easy Unlock pairing data. 1266 // Preference storing Easy Unlock pairing data.
1266 const char kEasyUnlockPairing[] = "easy_unlock.pairing"; 1267 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1267 1268
1268 // Whether close proximity between the remote and the local device is required 1269 // Whether close proximity between the remote and the local device is required
1269 // in order to use Easy Unlock. 1270 // in order to use Easy Unlock.
1270 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required"; 1271 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required";
1271 1272
1272 #if defined(ENABLE_EXTENSIONS) 1273 #if BUILDFLAG(ENABLE_EXTENSIONS)
1273 // Used to indicate whether or not the toolbar redesign bubble has been shown 1274 // Used to indicate whether or not the toolbar redesign bubble has been shown
1274 // and acknowledged, and the last time the bubble was shown. 1275 // and acknowledged, and the last time the bubble was shown.
1275 const char kToolbarIconSurfacingBubbleAcknowledged[] = 1276 const char kToolbarIconSurfacingBubbleAcknowledged[] =
1276 "toolbar_icon_surfacing_bubble_acknowledged"; 1277 "toolbar_icon_surfacing_bubble_acknowledged";
1277 const char kToolbarIconSurfacingBubbleLastShowTime[] = 1278 const char kToolbarIconSurfacingBubbleLastShowTime[] =
1278 "toolbar_icon_surfacing_bubble_show_time"; 1279 "toolbar_icon_surfacing_bubble_show_time";
1279 1280
1280 // Used to track component actions in the toolbar that were migrated from 1281 // Used to track component actions in the toolbar that were migrated from
1281 // extensions. 1282 // extensions.
1282 const char kToolbarMigratedComponentActionStatus[] = 1283 const char kToolbarMigratedComponentActionStatus[] =
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 2246
2246 // Boolean that indicates whether elevation is needed to recover Chrome upgrade. 2247 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2247 const char kRecoveryComponentNeedsElevation[] = 2248 const char kRecoveryComponentNeedsElevation[] =
2248 "recovery_component.needs_elevation"; 2249 "recovery_component.needs_elevation";
2249 2250
2250 // A dictionary that maps from supervised user whitelist IDs to their properties 2251 // A dictionary that maps from supervised user whitelist IDs to their properties
2251 // (name and a list of clients that registered the whitelist). 2252 // (name and a list of clients that registered the whitelist).
2252 const char kRegisteredSupervisedUserWhitelists[] = 2253 const char kRegisteredSupervisedUserWhitelists[] =
2253 "supervised_users.whitelists"; 2254 "supervised_users.whitelists";
2254 2255
2255 #if defined(ENABLE_EXTENSIONS) 2256 #if BUILDFLAG(ENABLE_EXTENSIONS)
2256 // Policy that indicates how to handle animated images. 2257 // Policy that indicates how to handle animated images.
2257 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2258 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2258 #endif 2259 #endif
2259 2260
2260 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2261 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2261 2262
2262 const char kAllowDinosaurEasterEgg[] = 2263 const char kAllowDinosaurEasterEgg[] =
2263 "allow_dinosaur_easter_egg"; 2264 "allow_dinosaur_easter_egg";
2264 2265
2265 #if defined(OS_ANDROID) 2266 #if defined(OS_ANDROID)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 // How many times the search geolocation disclosure has been shown. 2306 // How many times the search geolocation disclosure has been shown.
2306 const char kSearchGeolocationDisclosureShownCount[] = 2307 const char kSearchGeolocationDisclosureShownCount[] =
2307 "search_geolocation_disclosure.shown_count"; 2308 "search_geolocation_disclosure.shown_count";
2308 2309
2309 // When the disclosure was shown last. 2310 // When the disclosure was shown last.
2310 const char kSearchGeolocationDisclosureLastShowDate[] = 2311 const char kSearchGeolocationDisclosureLastShowDate[] =
2311 "search_geolocation_disclosure.last_show_date"; 2312 "search_geolocation_disclosure.last_show_date";
2312 #endif 2313 #endif
2313 2314
2314 } // namespace prefs 2315 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698