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

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

Issue 140343002: extensions: Relocate pref name constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing include for mac Created 6 years, 11 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
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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 const char kCurrentThemeID[] = "extensions.theme.id"; 937 const char kCurrentThemeID[] = "extensions.theme.id";
938 const char kCurrentThemeImages[] = "extensions.theme.images"; 938 const char kCurrentThemeImages[] = "extensions.theme.images";
939 const char kCurrentThemeColors[] = "extensions.theme.colors"; 939 const char kCurrentThemeColors[] = "extensions.theme.colors";
940 const char kCurrentThemeTints[] = "extensions.theme.tints"; 940 const char kCurrentThemeTints[] = "extensions.theme.tints";
941 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 941 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
942 942
943 // Boolean pref which persists whether the extensions_ui is in developer mode 943 // Boolean pref which persists whether the extensions_ui is in developer mode
944 // (showing developer packing tools and extensions details) 944 // (showing developer packing tools and extensions details)
945 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 945 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
946 946
947 // Integer pref that tracks the number of browser actions visible in the browser
948 // actions toolbar.
949 const char kExtensionToolbarSize[] = "extensions.toolbarsize";
950
951 // A preference that tracks browser action toolbar configuration. This is a list
952 // object stored in the Preferences file. The extensions are stored by ID.
953 const char kExtensionToolbar[] = "extensions.toolbar";
954
955 // Dictionary pref that tracks which command belongs to which 947 // Dictionary pref that tracks which command belongs to which
956 // extension + named command pair. 948 // extension + named command pair.
957 const char kExtensionCommands[] = "extensions.commands"; 949 const char kExtensionCommands[] = "extensions.commands";
958 950
959 // A list of known disabled extensions IDs.
960 const char kExtensionKnownDisabled[] = "extensions.known_disabled";
961
962 // Pref containing the directory for internal plugins as written to the plugins 951 // Pref containing the directory for internal plugins as written to the plugins
963 // list (below). 952 // list (below).
964 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 953 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
965 954
966 // List pref containing information (dictionaries) on plugins. 955 // List pref containing information (dictionaries) on plugins.
967 const char kPluginsPluginsList[] = "plugins.plugins_list"; 956 const char kPluginsPluginsList[] = "plugins.plugins_list";
968 957
969 // List pref containing names of plugins that are disabled by policy. 958 // List pref containing names of plugins that are disabled by policy.
970 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 959 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
971 960
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 "synced_notification.first_run"; 1254 "synced_notification.first_run";
1266 1255
1267 // Boolean pref indicating the welcome notification was dismissed by the user. 1256 // Boolean pref indicating the welcome notification was dismissed by the user.
1268 extern const char kWelcomeNotificationDismissed[] = 1257 extern const char kWelcomeNotificationDismissed[] =
1269 "message_center.welcome_notification_dismissed"; 1258 "message_center.welcome_notification_dismissed";
1270 1259
1271 // Boolean pref indicating the welcome notification was previously popped up. 1260 // Boolean pref indicating the welcome notification was previously popped up.
1272 extern const char kWelcomeNotificationPreviouslyPoppedUp[] = 1261 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1273 "message_center.welcome_notification_previously_popped_up"; 1262 "message_center.welcome_notification_previously_popped_up";
1274 1263
1275 // Dictionary pref that keeps track of per-extension settings. The keys are
1276 // extension ids.
1277 const char kExtensionsPref[] = "extensions.settings";
1278
1279 // String pref for what version chrome was last time the extension prefs were
1280 // loaded.
1281 const char kExtensionsLastChromeVersion[] = "extensions.last_chrome_version";
1282
1283 // Boolean pref that determines whether the user can enter fullscreen mode. 1264 // Boolean pref that determines whether the user can enter fullscreen mode.
1284 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop 1265 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1285 // platforms. 1266 // platforms.
1286 extern const char kFullscreenAllowed[] = "fullscreen.allowed"; 1267 extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1287 1268
1288 // Enable notifications for new devices on the local network that can be 1269 // Enable notifications for new devices on the local network that can be
1289 // registered to the user's account, e.g. Google Cloud Print printers. 1270 // registered to the user's account, e.g. Google Cloud Print printers.
1290 const char kLocalDiscoveryNotificationsEnabled[] = 1271 const char kLocalDiscoveryNotificationsEnabled[] =
1291 "local_discovery.notifications_enabled"; 1272 "local_discovery.notifications_enabled";
1292 1273
1293 // String that indicates if the Profile Reset prompt has already been shown to 1274 // String that indicates if the Profile Reset prompt has already been shown to
1294 // the user. Used both in user preferences and local state, in the latter, it is 1275 // the user. Used both in user preferences and local state, in the latter, it is
1295 // actually a dictionary that maps profile keys to before-mentioned strings. 1276 // actually a dictionary that maps profile keys to before-mentioned strings.
1296 const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento"; 1277 const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento";
1297 1278
1298 // Stores the check-in info retrieved from the GCM server. 1279 // Stores the check-in info retrieved from the GCM server.
1299 const char kGCMUserAccountID[] = "gcm.user.account_id"; 1280 const char kGCMUserAccountID[] = "gcm.user.account_id";
1300 const char kGCMUserToken[] = "gcm.user.token"; 1281 const char kGCMUserToken[] = "gcm.user.token";
1301 1282
1302 // Whitelist of Native Messaging Hosts.
1303 const char kNativeMessagingBlacklist[] = "native_messaging.blacklist";
1304 const char kNativeMessagingWhitelist[] = "native_messaging.whitelist";
1305
1306 // *************** LOCAL STATE *************** 1283 // *************** LOCAL STATE ***************
1307 // These are attached to the machine/installation 1284 // These are attached to the machine/installation
1308 1285
1309 // A pref to configure networks device-wide. Its value must be a list of 1286 // A pref to configure networks device-wide. Its value must be a list of
1310 // NetworkConfigurations according to the OpenNetworkConfiguration 1287 // NetworkConfigurations according to the OpenNetworkConfiguration
1311 // specification. 1288 // specification.
1312 // Currently, this pref is only used to store the policy. The user's 1289 // Currently, this pref is only used to store the policy. The user's
1313 // configuration is still stored in Shill. 1290 // configuration is still stored in Shill.
1314 const char kDeviceOpenNetworkConfiguration[] = "device_onc"; 1291 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1315 1292
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 // Placeholder preference for disabling voice / video chat if it is ever added. 1664 // Placeholder preference for disabling voice / video chat if it is ever added.
1688 // Currently, this does not change any behavior. 1665 // Currently, this does not change any behavior.
1689 const char kDisableVideoAndChat[] = "disable_video_chat"; 1666 const char kDisableVideoAndChat[] = "disable_video_chat";
1690 1667
1691 // Whether Extensions are enabled. 1668 // Whether Extensions are enabled.
1692 const char kDisableExtensions[] = "extensions.disabled"; 1669 const char kDisableExtensions[] = "extensions.disabled";
1693 1670
1694 // Whether the plugin finder that lets you install missing plug-ins is enabled. 1671 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1695 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1672 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1696 1673
1697 // Integer boolean representing the width (in pixels) of the container for
1698 // browser actions.
1699 const char kBrowserActionContainerWidth[] =
1700 "extensions.browseractions.container.width";
1701
1702 // Time of the last, and next scheduled, extensions auto-update checks.
1703 const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check";
1704 const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check";
1705
1706 // Whether we have run the extension-alert system (see ExtensionGlobalError)
1707 // at least once for this profile.
1708 const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
1709
1710 // The sites that are allowed to install extensions. These sites should be
1711 // allowed to install extensions without the scary dangerous downloads bar.
1712 // Also, when off-store-extension installs are disabled, these sites are exempt.
1713 const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites";
1714
1715 // A list of allowed extension types. Extensions can only be installed if their
1716 // type is on this whitelist or alternatively on kExtensionInstallAllowList or
1717 // kExtensionInstallForceList.
1718 const char kExtensionAllowedTypes[] = "extensions.allowed_types";
1719
1720 // Version number of last blacklist check.
1721 const char kExtensionBlacklistUpdateVersion[] =
1722 "extensions.blacklistupdate.version";
1723
1724 // A whitelist of extension ids the user can install: exceptions from the
1725 // following blacklist.
1726 const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
1727
1728 // A blacklist, containing extensions the user cannot install. This list can
1729 // contain "*" meaning all extensions. This list should not be confused with the
1730 // extension blacklist, which is Google controlled.
1731 const char kExtensionInstallDenyList[] = "extensions.install.denylist";
1732
1733 // A list containing extensions that Chrome will silently install
1734 // at startup time. It is a list of strings, each string contains
1735 // an extension ID and an update URL, delimited by a semicolon.
1736 // This preference is set by an admin policy, and meant to be only
1737 // accessed through extensions::ExternalPolicyProvider.
1738 const char kExtensionInstallForceList[] = "extensions.install.forcelist";
1739
1740 // Indicates on-disk data might have skeletal data that needs to be cleaned
1741 // on the next start of the browser.
1742 const char kExtensionStorageGarbageCollect[] =
1743 "extensions.storage.garbagecollect";
1744
1745 // Customized app page names that appear on the New Tab Page. 1674 // Customized app page names that appear on the New Tab Page.
1746 const char kNtpAppPageNames[] = "ntp.app_page_names"; 1675 const char kNtpAppPageNames[] = "ntp.app_page_names";
1747 1676
1748 // Keeps track of which sessions are collapsed in the Other Devices menu. 1677 // Keeps track of which sessions are collapsed in the Other Devices menu.
1749 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; 1678 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1750 1679
1751 // Keeps track of recently closed tabs collapsed state in the Other Devices 1680 // Keeps track of recently closed tabs collapsed state in the Other Devices
1752 // menu. 1681 // menu.
1753 const char kNtpCollapsedRecentlyClosedTabs[] = 1682 const char kNtpCollapsedRecentlyClosedTabs[] =
1754 "ntp.collapsed_recently_closed_tabs"; 1683 "ntp.collapsed_recently_closed_tabs";
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 2614
2686 // The number of seconds since epoch that the OS password was last changed. 2615 // The number of seconds since epoch that the OS password was last changed.
2687 const char kOsPasswordLastChanged[] = 2616 const char kOsPasswordLastChanged[] =
2688 "password_manager.os_password_last_changed"; 2617 "password_manager.os_password_last_changed";
2689 #endif 2618 #endif
2690 2619
2691 // Whether DNS Quick Check is disabled in proxy resolution. 2620 // Whether DNS Quick Check is disabled in proxy resolution.
2692 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2621 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2693 2622
2694 } // namespace prefs 2623 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698