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

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

Issue 10035043: Update RestoreOnStartupPolicyHandler to translate to the correct preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: \n Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.h ('k') | chrome/test/functional/policy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/session_startup_pref.cc
diff --git a/chrome/browser/prefs/session_startup_pref.cc b/chrome/browser/prefs/session_startup_pref.cc
index a546dd782e29b4924c896a2e77085b01d1de12d7..29c6f474b35710d3ccda94805fe2946d870b374c 100644
--- a/chrome/browser/prefs/session_startup_pref.cc
+++ b/chrome/browser/prefs/session_startup_pref.cc
@@ -25,19 +25,12 @@ using protector::ProtectorServiceFactory;
namespace {
-// For historical reasons the enum and value registered in the prefs don't line
-// up. These are the values registered in prefs.
-const int kPrefValueHomePage = 0; // Deprecated
-const int kPrefValueLast = 1;
-const int kPrefValueURLs = 4;
-const int kPrefValueNewTab = 5;
-
// Converts a SessionStartupPref::Type to an integer written to prefs.
int TypeToPrefValue(SessionStartupPref::Type type) {
switch (type) {
- case SessionStartupPref::LAST: return kPrefValueLast;
- case SessionStartupPref::URLS: return kPrefValueURLs;
- default: return kPrefValueNewTab;
+ case SessionStartupPref::LAST: return SessionStartupPref::kPrefValueLast;
+ case SessionStartupPref::URLS: return SessionStartupPref::kPrefValueURLs;
+ default: return SessionStartupPref::kPrefValueNewTab;
}
}
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.h ('k') | chrome/test/functional/policy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698