| 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 | |
| 29 // A boolean specifying whether the New Tab page is the home page or not. | 24 // A boolean specifying whether the New Tab page is the home page or not. |
| 30 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; | 25 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; |
| 31 | 26 |
| 32 // This is the URL of the page to load when opening new tabs. | 27 // This is the URL of the page to load when opening new tabs. |
| 33 const char kHomePage[] = "homepage"; | 28 const char kHomePage[] = "homepage"; |
| 34 | 29 |
| 35 // Did the user change the home page after install? | 30 // Did the user change the home page after install? |
| 36 const char kHomePageChanged[] = "homepage_changed"; | 31 const char kHomePageChanged[] = "homepage_changed"; |
| 37 | 32 |
| 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 | |
| 45 // Maps host names to whether the host is manually allowed or blocked. | 33 // Maps host names to whether the host is manually allowed or blocked. |
| 46 const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; | 34 const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; |
| 47 // Maps URLs to whether the URL is manually allowed or blocked. | 35 // Maps URLs to whether the URL is manually allowed or blocked. |
| 48 const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; | 36 const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; |
| 49 | 37 |
| 50 // Used to determine if the last session exited cleanly. Set to false when | 38 // Used to determine if the last session exited cleanly. Set to false when |
| 51 // first opened, and to true when closing. On startup if the value is false, | 39 // first opened, and to true when closing. On startup if the value is false, |
| 52 // it means the profile didn't exit cleanly. | 40 // it means the profile didn't exit cleanly. |
| 53 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 41 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
| 54 // compatability. | 42 // compatability. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 // The URLs to restore on startup or when the home button is pressed. The URLs | 61 // The URLs to restore on startup or when the home button is pressed. The URLs |
| 74 // are only restored on startup if kRestoreOnStartup is 4. | 62 // are only restored on startup if kRestoreOnStartup is 4. |
| 75 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | 63 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; |
| 76 | 64 |
| 77 // A preference to keep track of whether we have already checked whether we | 65 // A preference to keep track of whether we have already checked whether we |
| 78 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. | 66 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. |
| 79 // We only need to do this check once, on upgrade from m18 or lower to m19 or | 67 // We only need to do this check once, on upgrade from m18 or lower to m19 or |
| 80 // higher. | 68 // higher. |
| 81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; | 69 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; |
| 82 | 70 |
| 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 |
| 83 // The application locale. | 76 // The application locale. |
| 84 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 77 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
| 85 // and user's profile. Global property determines locale of login screen, | 78 // and user's profile. Global property determines locale of login screen, |
| 86 // while user's profile determines his personal locale preference. | 79 // while user's profile determines his personal locale preference. |
| 87 const char kApplicationLocale[] = "intl.app_locale"; | 80 const char kApplicationLocale[] = "intl.app_locale"; |
| 88 #if defined(OS_CHROMEOS) | 81 #if defined(OS_CHROMEOS) |
| 89 // Locale preference of device' owner. ChromeOS device appears in this locale | 82 // Locale preference of device' owner. ChromeOS device appears in this locale |
| 90 // after startup/wakeup/signout. | 83 // after startup/wakeup/signout. |
| 91 const char kOwnerLocale[] = "intl.owner_locale"; | 84 const char kOwnerLocale[] = "intl.owner_locale"; |
| 92 // Locale accepted by user. Non-syncable. | 85 // Locale accepted by user. Non-syncable. |
| (...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2283 const char kRLZDisabled[] = "rlz.disabled"; | 2276 const char kRLZDisabled[] = "rlz.disabled"; |
| 2284 #endif | 2277 #endif |
| 2285 | 2278 |
| 2286 #if defined(ENABLE_APP_LIST) | 2279 #if defined(ENABLE_APP_LIST) |
| 2287 // The directory in user data dir that contains the profile to be used with the | 2280 // The directory in user data dir that contains the profile to be used with the |
| 2288 // app launcher. | 2281 // app launcher. |
| 2289 extern const char kAppListProfile[] = "app_list.profile"; | 2282 extern const char kAppListProfile[] = "app_list.profile"; |
| 2290 #endif | 2283 #endif |
| 2291 | 2284 |
| 2292 } // namespace prefs | 2285 } // namespace prefs |
| OLD | NEW |