Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/common/pref_names.cc

Issue 24930003: Migrate startup URLs pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update histograms strings. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 name for kURLsToRestoreOnStartup.
88 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
89
90 // Serialized migration time of kURLsToRestoreOnStartup (see
91 // base::Time::ToInternalValue for details on serialization format).
92 const char kRestoreStartupURLsMigrated[] = "session.startup_urls_migrated";
Bernhard Bauer 2013/10/15 22:03:52 You could rename this to make it clearer that it's
robertshield 2013/10/16 01:23:27 Done.
86 93
87 // If set to true profiles are created in ephemeral mode and do not store their 94 // 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. 95 // data in the profile folder on disk but only in memory.
89 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 96 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
90 97
91 // The application locale. 98 // The application locale.
92 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 99 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
93 // and user's profile. Global property determines locale of login screen, 100 // and user's profile. Global property determines locale of login screen,
94 // while user's profile determines his personal locale preference. 101 // while user's profile determines his personal locale preference.
95 const char kApplicationLocale[] = "intl.app_locale"; 102 const char kApplicationLocale[] = "intl.app_locale";
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 // A dictionary pref which maps profile names to dictionary values which hold 2571 // 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 2572 // hashes of profile prefs that we track to detect changes that happen outside
2566 // of Chrome. 2573 // of Chrome.
2567 const char kProfilePreferenceHashes[] = "profile.preference_hashes"; 2574 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
2568 2575
2569 // Stores a pair of local time and corresponding network time to bootstrap 2576 // Stores a pair of local time and corresponding network time to bootstrap
2570 // network time tracker when browser starts. 2577 // network time tracker when browser starts.
2571 const char kNetworkTimeMapping[] = "profile.network_time_mapping"; 2578 const char kNetworkTimeMapping[] = "profile.network_time_mapping";
2572 2579
2573 } // namespace prefs 2580 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698