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

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: Now with sync support. 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 and migration time delta as a double.
robertshield 2013/10/04 15:16:15 Mention in the comment the units of time.
MAD 2013/10/04 19:31:22 Done.
88 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
89 const char kRestoreStartupURLsMigrated[] = "session.startup_urls_migrated";
robertshield 2013/10/04 15:16:15 s/Migrated/MigrationTime
MAD 2013/10/04 19:31:22 Actually, that's on purpose...I wanted to use the
86 90
87 // If set to true profiles are created in ephemeral mode and do not store their 91 // 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. 92 // data in the profile folder on disk but only in memory.
89 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 93 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
90 94
91 // The application locale. 95 // The application locale.
92 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 96 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
93 // and user's profile. Global property determines locale of login screen, 97 // and user's profile. Global property determines locale of login screen,
94 // while user's profile determines his personal locale preference. 98 // while user's profile determines his personal locale preference.
95 const char kApplicationLocale[] = "intl.app_locale"; 99 const char kApplicationLocale[] = "intl.app_locale";
(...skipping 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 // A dictionary pref which maps profile names to dictionary values which hold 2563 // A dictionary pref which maps profile names to dictionary values which hold
2560 // hashes of profile prefs that we track to detect changes that happen outside 2564 // hashes of profile prefs that we track to detect changes that happen outside
2561 // of Chrome. 2565 // of Chrome.
2562 const char kProfilePreferenceHashes[] = "profile.preference_hashes"; 2566 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
2563 2567
2564 // Stores a pair of local time and corresponding network time to bootstrap 2568 // Stores a pair of local time and corresponding network time to bootstrap
2565 // network time tracker when browser starts. 2569 // network time tracker when browser starts.
2566 const char kNetworkTimeMapping[] = "profile.network_time_mapping"; 2570 const char kNetworkTimeMapping[] = "profile.network_time_mapping";
2567 2571
2568 } // namespace prefs 2572 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698