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

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

Issue 2114923002: Don't sync session.startup_urls and session.urls_to_restore_on_startup to mobile platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't sync session.startup_urls and session.urls_to_restore_on_startup to mobile platforms. Created 4 years, 6 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 | « no previous file | no next file » | 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 c3e6b79d69bd235fbbe2943b916e6f56b210375a..7bcf8d03f0d69fdc2ecf524846bcb464e15ab352 100644
--- a/chrome/browser/prefs/session_startup_pref.cc
+++ b/chrome/browser/prefs/session_startup_pref.cc
@@ -44,12 +44,15 @@ void URLListToPref(const base::ListValue* url_list, SessionStartupPref* pref) {
// static
void SessionStartupPref::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
- registry->RegisterIntegerPref(
- prefs::kRestoreOnStartup,
- TypeToPrefValue(GetDefaultStartupType()),
- user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
- registry->RegisterListPref(prefs::kURLsToRestoreOnStartup,
- user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+#if defined(OS_IOS) || defined(OS_ANDROID)
+ uint32_t flags = PrefRegistry::NO_REGISTRATION_FLAGS;
+#else
+ uint32_t flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF;
+#endif
+ registry->RegisterIntegerPref(prefs::kRestoreOnStartup,
+ TypeToPrefValue(GetDefaultStartupType()),
+ flags);
+ registry->RegisterListPref(prefs::kURLsToRestoreOnStartup, flags);
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698