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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 7775008: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review #6 Created 9 years, 3 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
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 15a0eb32cd71a9b4af875182cc874631c88685c7..7c1b6b116dd2e8c5ec0204f3a4783d217b4fb45a 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -315,6 +315,9 @@ void ProfileSyncService::RegisterPreferences() {
pref_service->RegisterBooleanPref(prefs::kSyncTypedUrls,
enable_by_default,
PrefService::UNSYNCABLE_PREF);
+ pref_service->RegisterBooleanPref(prefs::kSyncExtensionSettings,
+ enable_by_default,
+ PrefService::UNSYNCABLE_PREF);
pref_service->RegisterBooleanPref(prefs::kSyncExtensions,
enable_by_default,
PrefService::UNSYNCABLE_PREF);
@@ -556,6 +559,8 @@ const char* ProfileSyncService::GetPrefNameForDataType(
return prefs::kSyncThemes;
case syncable::TYPED_URLS:
return prefs::kSyncTypedUrls;
+ case syncable::EXTENSION_SETTINGS:
+ return prefs::kSyncExtensionSettings;
case syncable::EXTENSIONS:
return prefs::kSyncExtensions;
case syncable::APPS:

Powered by Google App Engine
This is Rietveld 408576698