OLD | NEW |
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 | 8 |
9 namespace prefs { | 9 namespace prefs { |
10 | 10 |
11 // *************** PROFILE PREFS *************** | 11 // *************** PROFILE PREFS *************** |
12 // These are attached to the user profile | 12 // These are attached to the user profile |
13 | 13 |
14 // A string property indicating whether default apps should be installed | 14 // A string property indicating whether default apps should be installed |
15 // in this profile. Use the value "install" to enable defaults apps, or | 15 // in this profile. Use the value "install" to enable defaults apps, or |
16 // "noinstall" to disable them. This property is usually set in the | 16 // "noinstall" to disable them. This property is usually set in the |
17 // master_preferences and copied into the profile preferences on first run. | 17 // master_preferences and copied into the profile preferences on first run. |
18 // Defaults apps are installed only when creating a new profile. | 18 // Defaults apps are installed only when creating a new profile. |
19 const char kDefaultApps[] = "default_apps"; | 19 const char kDefaultApps[] = "default_apps"; |
20 | 20 |
21 // Whether we have installed default apps yet in this profile. | 21 // Whether we have installed default apps yet in this profile. |
22 const char kDefaultAppsInstalled[] = "default_apps_installed"; | 22 const char kDefaultAppsInstalled[] = "default_apps_installed"; |
23 | 23 |
| 24 // Disables screenshot accelerators and extension APIs. |
| 25 // This setting resides both in profile prefs and local state. Accelerator |
| 26 // handling code reads local state, while extension APIs use profile pref. |
| 27 const char kDisableScreenshots[] = "disable_screenshots"; |
| 28 |
24 // A boolean specifying whether the New Tab page is the home page or not. | 29 // A boolean specifying whether the New Tab page is the home page or not. |
25 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; | 30 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; |
26 | 31 |
27 // This is the URL of the page to load when opening new tabs. | 32 // This is the URL of the page to load when opening new tabs. |
28 const char kHomePage[] = "homepage"; | 33 const char kHomePage[] = "homepage"; |
29 | 34 |
30 // Did the user change the home page after install? | 35 // Did the user change the home page after install? |
31 const char kHomePageChanged[] = "homepage_changed"; | 36 const char kHomePageChanged[] = "homepage_changed"; |
32 | 37 |
| 38 // This preference is used to store the hash of a password of the custodian of |
| 39 // a managed user. It allows to unlock options which should be not available to |
| 40 // the managed user. The salt preference is used to derive the hash from the |
| 41 // password. |
| 42 const char kManagedModeLocalPassphrase[] = "managed_mode.passphrase"; |
| 43 const char kManagedModeLocalSalt[] = "managed_mode.salt"; |
| 44 |
33 // Maps host names to whether the host is manually allowed or blocked. | 45 // Maps host names to whether the host is manually allowed or blocked. |
34 const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; | 46 const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; |
35 // Maps URLs to whether the URL is manually allowed or blocked. | 47 // Maps URLs to whether the URL is manually allowed or blocked. |
36 const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; | 48 const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; |
37 | 49 |
38 // Used to determine if the last session exited cleanly. Set to false when | 50 // Used to determine if the last session exited cleanly. Set to false when |
39 // first opened, and to true when closing. On startup if the value is false, | 51 // first opened, and to true when closing. On startup if the value is false, |
40 // it means the profile didn't exit cleanly. | 52 // it means the profile didn't exit cleanly. |
41 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 53 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
42 // compatability. | 54 // compatability. |
(...skipping 18 matching lines...) Expand all Loading... |
61 // The URLs to restore on startup or when the home button is pressed. The URLs | 73 // The URLs to restore on startup or when the home button is pressed. The URLs |
62 // are only restored on startup if kRestoreOnStartup is 4. | 74 // are only restored on startup if kRestoreOnStartup is 4. |
63 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | 75 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; |
64 | 76 |
65 // A preference to keep track of whether we have already checked whether we | 77 // A preference to keep track of whether we have already checked whether we |
66 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. | 78 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. |
67 // We only need to do this check once, on upgrade from m18 or lower to m19 or | 79 // We only need to do this check once, on upgrade from m18 or lower to m19 or |
68 // higher. | 80 // higher. |
69 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; | 81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; |
70 | 82 |
71 // Disables screenshot accelerators and extension APIs. | |
72 // This setting resides both in profile prefs and local state. Accelerator | |
73 // handling code reads local state, while extension APIs use profile pref. | |
74 const char kDisableScreenshots[] = "disable_screenshots"; | |
75 | |
76 // The application locale. | 83 // The application locale. |
77 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 84 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
78 // and user's profile. Global property determines locale of login screen, | 85 // and user's profile. Global property determines locale of login screen, |
79 // while user's profile determines his personal locale preference. | 86 // while user's profile determines his personal locale preference. |
80 const char kApplicationLocale[] = "intl.app_locale"; | 87 const char kApplicationLocale[] = "intl.app_locale"; |
81 #if defined(OS_CHROMEOS) | 88 #if defined(OS_CHROMEOS) |
82 // Locale preference of device' owner. ChromeOS device appears in this locale | 89 // Locale preference of device' owner. ChromeOS device appears in this locale |
83 // after startup/wakeup/signout. | 90 // after startup/wakeup/signout. |
84 const char kOwnerLocale[] = "intl.owner_locale"; | 91 const char kOwnerLocale[] = "intl.owner_locale"; |
85 // Locale accepted by user. Non-syncable. | 92 // Locale accepted by user. Non-syncable. |
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2280 const char kRLZDisabled[] = "rlz.disabled"; | 2287 const char kRLZDisabled[] = "rlz.disabled"; |
2281 #endif | 2288 #endif |
2282 | 2289 |
2283 #if defined(ENABLE_APP_LIST) | 2290 #if defined(ENABLE_APP_LIST) |
2284 // The directory in user data dir that contains the profile to be used with the | 2291 // The directory in user data dir that contains the profile to be used with the |
2285 // app launcher. | 2292 // app launcher. |
2286 extern const char kAppListProfile[] = "app_list.profile"; | 2293 extern const char kAppListProfile[] = "app_list.profile"; |
2287 #endif | 2294 #endif |
2288 | 2295 |
2289 } // namespace prefs | 2296 } // namespace prefs |
OLD | NEW |