| 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 #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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Stores the email address associated with the google account of the custodian | 41 // Stores the email address associated with the google account of the custodian |
| 42 // of the managed user, set when the managed user is created. | 42 // of the managed user, set when the managed user is created. |
| 43 const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email"; | 43 const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email"; |
| 44 | 44 |
| 45 // Stores the display name associated with the google account of the custodian | 45 // Stores the display name associated with the google account of the custodian |
| 46 // of the managed user, updated (if possible) each time the managed user | 46 // of the managed user, updated (if possible) each time the managed user |
| 47 // starts a session. | 47 // starts a session. |
| 48 const char kManagedUserCustodianName[] = "profile.managed.custodian_name"; | 48 const char kManagedUserCustodianName[] = "profile.managed.custodian_name"; |
| 49 | 49 |
| 50 // An integer that keeps track of the profile icon version. This allows us to |
| 51 // determine the state of the profile icon for icon format changes. |
| 52 const char kProfileIconVersion[] = "profile.icon_version"; |
| 53 |
| 50 // Used to determine if the last session exited cleanly. Set to false when | 54 // 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, | 55 // first opened, and to true when closing. On startup if the value is false, |
| 52 // it means the profile didn't exit cleanly. | 56 // it means the profile didn't exit cleanly. |
| 53 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 57 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
| 54 // compatability. | 58 // compatability. |
| 55 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 59 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
| 56 | 60 |
| 57 // A string pref whose values is one of the values defined by | 61 // A string pref whose values is one of the values defined by |
| 58 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and | 62 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and |
| 59 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during | 63 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during |
| 60 // shutdown. Used to determine the exit type the last time the profile was open. | 64 // shutdown. Used to determine the exit type the last time the profile was open. |
| 61 const char kSessionExitType[] = "profile.exit_type"; | 65 const char kSessionExitType[] = "profile.exit_type"; |
| 62 | 66 |
| 63 // An integer pref. Holds one of several values: | 67 // An integer pref. Holds one of several values: |
| 64 // 0: (deprecated) open the homepage on startup. | 68 // 0: (deprecated) open the homepage on startup. |
| 65 // 1: restore the last session. | 69 // 1: restore the last session. |
| 66 // 2: this was used to indicate a specific session should be restored. It is | 70 // 2: this was used to indicate a specific session should be restored. It is |
| 67 // no longer used, but saved to avoid conflict with old preferences. | 71 // no longer used, but saved to avoid conflict with old preferences. |
| 68 // 3: unused, previously indicated the user wants to restore a saved session. | 72 // 3: unused, previously indicated the user wants to restore a saved session. |
| 69 // 4: restore the URLs defined in kURLsToRestoreOnStartup. | 73 // 4: restore the URLs defined in kURLsToRestoreOnStartup. |
| 70 // 5: open the New Tab Page on startup. | 74 // 5: open the New Tab Page on startup. |
| 71 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 75 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
| 72 | 76 |
| 73 // 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. | |
| 75 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | |
| 76 | |
| 77 // 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 |
| 78 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. | 78 // 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 | 79 // We only need to do this check once, on upgrade from m18 or lower to m19 or |
| 80 // higher. | 80 // higher. |
| 81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; | 81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; |
| 82 | 82 |
| 83 // The URLs to restore on startup or when the home button is pressed. The URLs |
| 84 // are only restored on startup if kRestoreOnStartup is 4. |
| 85 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; |
| 86 |
| 83 // The application locale. | 87 // The application locale. |
| 84 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 88 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
| 85 // and user's profile. Global property determines locale of login screen, | 89 // and user's profile. Global property determines locale of login screen, |
| 86 // while user's profile determines his personal locale preference. | 90 // while user's profile determines his personal locale preference. |
| 87 const char kApplicationLocale[] = "intl.app_locale"; | 91 const char kApplicationLocale[] = "intl.app_locale"; |
| 88 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
| 89 // Locale preference of device' owner. ChromeOS device appears in this locale | 93 // Locale preference of device' owner. ChromeOS device appears in this locale |
| 90 // after startup/wakeup/signout. | 94 // after startup/wakeup/signout. |
| 91 const char kOwnerLocale[] = "intl.owner_locale"; | 95 const char kOwnerLocale[] = "intl.owner_locale"; |
| 92 // Locale accepted by user. Non-syncable. | 96 // Locale accepted by user. Non-syncable. |
| (...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 | 2508 |
| 2505 // How often the bubble has been shown. | 2509 // How often the bubble has been shown. |
| 2506 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; | 2510 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; |
| 2507 | 2511 |
| 2508 // A string pref for storing the salt used to compute the pepper device ID. | 2512 // A string pref for storing the salt used to compute the pepper device ID. |
| 2509 const char kDRMSalt[] = "settings.privacy.drm_salt"; | 2513 const char kDRMSalt[] = "settings.privacy.drm_salt"; |
| 2510 // A boolean pref that enables the (private) pepper GetDeviceID() call. | 2514 // A boolean pref that enables the (private) pepper GetDeviceID() call. |
| 2511 const char kEnableDRM[] = "settings.privacy.drm_enabled"; | 2515 const char kEnableDRM[] = "settings.privacy.drm_enabled"; |
| 2512 | 2516 |
| 2513 } // namespace prefs | 2517 } // namespace prefs |
| OLD | NEW |