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

Unified Diff: chrome/browser/prefs/session_startup_pref.h

Issue 1312693005: Remove migration of obsolete value for "session.restore_on_startup". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url-to-restore-on-startup
Patch Set: Re-enable the two tests Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/session_startup_pref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/session_startup_pref.h
diff --git a/chrome/browser/prefs/session_startup_pref.h b/chrome/browser/prefs/session_startup_pref.h
index 0a7aeec08663caaa04295421c18279985cf68cdc..67ebeaaed67c4d065d99b77a0c42063dfbc20588 100644
--- a/chrome/browser/prefs/session_startup_pref.h
+++ b/chrome/browser/prefs/session_startup_pref.h
@@ -23,25 +23,18 @@ struct SessionStartupPref {
// Indicates the user wants to open the New Tab page.
DEFAULT,
- // Deprecated. See comment in session_startup_pref.cc
- HOMEPAGE,
-
// Indicates the user wants to restore the last session.
LAST,
// Indicates the user wants to restore a specific set of URLs. The URLs
// are contained in urls.
URLS,
-
- // Number of values in this enum.
- TYPE_COUNT
};
// For historical reasons the enum and value registered in the prefs don't
// line up. These are the values registered in prefs.
// The values are also recorded in Settings.StartupPageLoadSettings histogram,
// so make sure to update histograms.xml if you change these.
- static const int kPrefValueHomePage = 0; // Deprecated
static const int kPrefValueLast = 1;
static const int kPrefValueURLs = 4;
static const int kPrefValueNewTab = 5;
@@ -59,11 +52,6 @@ struct SessionStartupPref {
static SessionStartupPref GetStartupPref(Profile* profile);
static SessionStartupPref GetStartupPref(PrefService* prefs);
- // If the user had the "restore on startup" property set to the deprecated
- // "Open the home page" value, this migrates them to a value that will have
- // the same effect.
- static void MigrateIfNecessary(PrefService* prefs);
-
// Whether the startup type and URLs are managed via policy.
static bool TypeIsManaged(PrefService* prefs);
static bool URLsAreManaged(PrefService* prefs);
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/session_startup_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698