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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 75 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
76 | 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 | 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. | 84 // are only restored on startup if kRestoreOnStartup is 4. |
85 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | 85 const char kURLsToRestoreOnStartup[] = "session.startup_urls"; |
86 | |
87 // Old startup url pref and serialized migration time (see | |
88 // base::Time::ToInternalValue for details). | |
Alexei Svitkine (slow)
2013/10/15 14:40:55
Nit: I'd have one comment above each constant belo
robertshield
2013/10/15 18:00:44
Done.
| |
89 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup"; | |
90 const char kRestoreStartupURLsMigrated[] = "session.startup_urls_migrated"; | |
86 | 91 |
87 // If set to true profiles are created in ephemeral mode and do not store their | 92 // If set to true profiles are created in ephemeral mode and do not store their |
88 // data in the profile folder on disk but only in memory. | 93 // data in the profile folder on disk but only in memory. |
89 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; | 94 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; |
90 | 95 |
91 // The application locale. | 96 // The application locale. |
92 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 97 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
93 // and user's profile. Global property determines locale of login screen, | 98 // and user's profile. Global property determines locale of login screen, |
94 // while user's profile determines his personal locale preference. | 99 // while user's profile determines his personal locale preference. |
95 const char kApplicationLocale[] = "intl.app_locale"; | 100 const char kApplicationLocale[] = "intl.app_locale"; |
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2564 // A dictionary pref which maps profile names to dictionary values which hold | 2569 // A dictionary pref which maps profile names to dictionary values which hold |
2565 // hashes of profile prefs that we track to detect changes that happen outside | 2570 // hashes of profile prefs that we track to detect changes that happen outside |
2566 // of Chrome. | 2571 // of Chrome. |
2567 const char kProfilePreferenceHashes[] = "profile.preference_hashes"; | 2572 const char kProfilePreferenceHashes[] = "profile.preference_hashes"; |
2568 | 2573 |
2569 // Stores a pair of local time and corresponding network time to bootstrap | 2574 // Stores a pair of local time and corresponding network time to bootstrap |
2570 // network time tracker when browser starts. | 2575 // network time tracker when browser starts. |
2571 const char kNetworkTimeMapping[] = "profile.network_time_mapping"; | 2576 const char kNetworkTimeMapping[] = "profile.network_time_mapping"; |
2572 | 2577 |
2573 } // namespace prefs | 2578 } // namespace prefs |
OLD | NEW |