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

Unified Diff: chrome/installer/util/master_preferences.cc

Issue 1302303002: Remove year+ old migration support of "session.urls_to_restore_on_startup". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable_unittest
Patch Set: Address comments 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/common/pref_names.cc ('k') | chrome/installer/util/master_preferences_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/master_preferences.cc
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc
index cc5c1a56d554db0f622c18d843d84b2b0e1d5ebc..6e3daf6c6742a2046b62caacc9c32cf24cef92a4 100644
--- a/chrome/installer/util/master_preferences.cc
+++ b/chrome/installer/util/master_preferences.cc
@@ -249,19 +249,6 @@ void MasterPreferences::EnforceLegacyPreferences() {
distribution_->SetBoolean(
installer::master_preferences::kDoNotCreateQuickLaunchShortcut, true);
}
-
- // If there is no entry for kURLsToRestoreOnStartup and there is one for
- // kURLsToRestoreOnStartupOld, copy the old to the new.
- const base::ListValue* startup_urls_list = NULL;
- if (master_dictionary_ &&
- !master_dictionary_->GetList(prefs::kURLsToRestoreOnStartup, NULL) &&
- master_dictionary_->GetList(prefs::kURLsToRestoreOnStartupOld,
- &startup_urls_list) &&
- startup_urls_list) {
- base::ListValue* new_startup_urls_list = startup_urls_list->DeepCopy();
- master_dictionary_->Set(prefs::kURLsToRestoreOnStartup,
- new_startup_urls_list);
- }
}
bool MasterPreferences::GetBool(const std::string& name, bool* value) const {
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/installer/util/master_preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698