Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / browser / pref_names.cc
blob94b386c26f8a3f722971214be09c7cd1e68124f6
1 // Copyright 2013 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.
5 #include "extensions/browser/pref_names.h"
7 #include "base/logging.h"
9 namespace extensions {
10 namespace pref_names {
12 bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result) {
13 switch (scope) {
14 case kExtensionPrefsScopeRegular:
15 *result = kPrefPreferences;
16 return true;
17 case kExtensionPrefsScopeRegularOnly:
18 *result = kPrefRegularOnlyPreferences;
19 return true;
20 case kExtensionPrefsScopeIncognitoPersistent:
21 *result = kPrefIncognitoPreferences;
22 return true;
23 case kExtensionPrefsScopeIncognitoSessionOnly:
24 return false;
26 NOTREACHED();
27 return false;
30 const char kAlertsInitialized[] = "extensions.alerts.initialized";
31 const char kAllowedInstallSites[] = "extensions.allowed_install_sites";
32 const char kAllowedTypes[] = "extensions.allowed_types";
33 const char kAppFullscreenAllowed[] = "apps.fullscreen.allowed";
34 const char kBookmarkAppCreationLaunchType[] =
35 "extensions.bookmark_app_creation_launch_type";
36 const char kExtensions[] = "extensions.settings";
37 const char kInstallAllowList[] = "extensions.install.allowlist";
38 const char kInstallDenyList[] = "extensions.install.denylist";
39 const char kInstallForceList[] = "extensions.install.forcelist";
40 const char kLastChromeVersion[] = "extensions.last_chrome_version";
41 const char kLastUpdateCheck[] = "extensions.autoupdate.last_check";
42 const char kNativeMessagingBlacklist[] = "native_messaging.blacklist";
43 const char kNativeMessagingWhitelist[] = "native_messaging.whitelist";
44 const char kNativeMessagingUserLevelHosts[] =
45 "native_messaging.user_level_hosts";
46 const char kNextUpdateCheck[] = "extensions.autoupdate.next_check";
47 const char kStorageGarbageCollect[] = "extensions.storage.garbagecollect";
48 const char kToolbar[] = "extensions.toolbar";
49 const char kToolbarSize[] = "extensions.toolbarsize";
51 const char kPrefPreferences[] = "preferences";
52 const char kPrefIncognitoPreferences[] = "incognito_preferences";
53 const char kPrefRegularOnlyPreferences[] = "regular_only_preferences";
54 const char kPrefContentSettings[] = "content_settings";
55 const char kPrefIncognitoContentSettings[] = "incognito_content_settings";
57 } // namespace pref_names
58 } // namespace extensions