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

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: 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.
88 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
89 const char kRestoreStartupURLsMigrated[] = "session.startup_urls_migrated";
86 90
87 // The application locale. 91 // The application locale.
88 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 92 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
89 // and user's profile. Global property determines locale of login screen, 93 // and user's profile. Global property determines locale of login screen,
90 // while user's profile determines his personal locale preference. 94 // while user's profile determines his personal locale preference.
91 const char kApplicationLocale[] = "intl.app_locale"; 95 const char kApplicationLocale[] = "intl.app_locale";
92 #if defined(OS_CHROMEOS) 96 #if defined(OS_CHROMEOS)
93 // Locale preference of device' owner. ChromeOS device appears in this locale 97 // Locale preference of device' owner. ChromeOS device appears in this locale
94 // after startup/wakeup/signout. 98 // after startup/wakeup/signout.
95 const char kOwnerLocale[] = "intl.owner_locale"; 99 const char kOwnerLocale[] = "intl.owner_locale";
(...skipping 2410 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 // ActivityLog initialization before the extension system is initialized. 2510 // ActivityLog initialization before the extension system is initialized.
2507 const char kWatchdogExtensionActive[] = 2511 const char kWatchdogExtensionActive[] =
2508 "profile.extensions.activity_log.watchdog_extension_active"; 2512 "profile.extensions.activity_log.watchdog_extension_active";
2509 2513
2510 // A dictionary pref which maps profile names to dictionary values which hold 2514 // A dictionary pref which maps profile names to dictionary values which hold
2511 // hashes of profile prefs that we track to detect changes that happen outside 2515 // hashes of profile prefs that we track to detect changes that happen outside
2512 // of Chrome. 2516 // of Chrome.
2513 const char kProfilePreferenceHashes[] = "profile.preference_hashes"; 2517 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
2514 2518
2515 } // namespace prefs 2519 } // namespace prefs
OLDNEW
« chrome/browser/prefs/pref_metrics_service.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698