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 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // The URLs to restore on startup or when the home button is pressed. The URLs | 55 // The URLs to restore on startup or when the home button is pressed. The URLs |
56 // are only restored on startup if kRestoreOnStartup is 4. | 56 // are only restored on startup if kRestoreOnStartup is 4. |
57 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | 57 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; |
58 | 58 |
59 // A preference to keep track of whether we have already checked whether we | 59 // A preference to keep track of whether we have already checked whether we |
60 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. | 60 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. |
61 // We only need to do this check once, on upgrade from m18 or lower to m19 or | 61 // We only need to do this check once, on upgrade from m18 or lower to m19 or |
62 // higher. | 62 // higher. |
63 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; | 63 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; |
64 | 64 |
| 65 // Disables screenshot accelerators and extension APIs. |
| 66 // This setting resides both in profile prefs and local state. Accelerator |
| 67 // handling code reads local state, while extension APIs use profile pref. |
| 68 const char kDisableScreenshots[] = "disable_screenshots"; |
| 69 |
65 // The application locale. | 70 // The application locale. |
66 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 71 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
67 // and user's profile. Global property determines locale of login screen, | 72 // and user's profile. Global property determines locale of login screen, |
68 // while user's profile determines his personal locale preference. | 73 // while user's profile determines his personal locale preference. |
69 const char kApplicationLocale[] = "intl.app_locale"; | 74 const char kApplicationLocale[] = "intl.app_locale"; |
70 #if defined(OS_CHROMEOS) | 75 #if defined(OS_CHROMEOS) |
71 // Locale preference of device' owner. ChromeOS device appears in this locale | 76 // Locale preference of device' owner. ChromeOS device appears in this locale |
72 // after startup/wakeup/signout. | 77 // after startup/wakeup/signout. |
73 const char kOwnerLocale[] = "intl.owner_locale"; | 78 const char kOwnerLocale[] = "intl.owner_locale"; |
74 // Locale accepted by user. Non-syncable. | 79 // Locale accepted by user. Non-syncable. |
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2003 const char kNetworkProfileLastWarningTime[] = | 2008 const char kNetworkProfileLastWarningTime[] = |
2004 "network_profile.last_warning_time"; | 2009 "network_profile.last_warning_time"; |
2005 | 2010 |
2006 #if defined(OS_MACOSX) | 2011 #if defined(OS_MACOSX) |
2007 // A timestamp of when the obsolete OS infobar was last shown to a user on 10.5. | 2012 // A timestamp of when the obsolete OS infobar was last shown to a user on 10.5. |
2008 const char kMacLeopardObsoleteInfobarLastShown[] = | 2013 const char kMacLeopardObsoleteInfobarLastShown[] = |
2009 "mac_105_obsolete_infobar_last_shown"; | 2014 "mac_105_obsolete_infobar_last_shown"; |
2010 #endif // defined(OS_MACOSX) | 2015 #endif // defined(OS_MACOSX) |
2011 | 2016 |
2012 } // namespace prefs | 2017 } // namespace prefs |
OLD | NEW |