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

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

Issue 12033093: sync: Implementation of Priority Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/sync_prefs.cc
diff --git a/chrome/browser/sync/sync_prefs.cc b/chrome/browser/sync/sync_prefs.cc
index 2866dd5038192309775a7dfcc8afe85841229591..882467eb76e930934880b5a0c814ec1c4ab35394 100644
--- a/chrome/browser/sync/sync_prefs.cc
+++ b/chrome/browser/sync/sync_prefs.cc
@@ -344,6 +344,8 @@ const char* SyncPrefs::GetPrefNameForDataType(syncer::ModelType data_type) {
return prefs::kSyncFaviconTracking;
case syncer::PROXY_TABS:
return prefs::kSyncTabs;
+ case syncer::PRIORITY_PREFERENCES:
+ return prefs::kSyncPriorityPreferences;
Mattias Nissler (ping if slow) 2013/03/21 06:50:15 Is there any migration needed here? I.e. for exist
albertb 2013/03/21 17:10:33 I'm not sure about this. Nicolas/Tim: what do you
tim (not reviewing) 2013/03/21 18:10:55 We're not adding a checkbox in the UI for this, ri
albertb 2013/03/21 18:46:29 Yes, priority preferences are automatically enable
default:
break;
}
@@ -409,6 +411,7 @@ void SyncPrefs::RegisterPrefGroups() {
pref_groups_[syncer::EXTENSIONS].Put(syncer::EXTENSION_SETTINGS);
pref_groups_[syncer::PREFERENCES].Put(syncer::DICTIONARY);
+ pref_groups_[syncer::PREFERENCES].Put(syncer::PRIORITY_PREFERENCES);
pref_groups_[syncer::PREFERENCES].Put(syncer::SEARCH_ENGINES);
pref_groups_[syncer::TYPED_URLS].Put(syncer::HISTORY_DELETE_DIRECTIVES);

Powered by Google App Engine
This is Rietveld 408576698