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

Unified Diff: chrome/browser/sync/glue/preference_model_associator.cc

Issue 593094: Add unique hashing to sync API. (Closed)
Patch Set: New unit test, review fixes. Created 10 years, 10 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/glue/preference_model_associator.cc
diff --git a/chrome/browser/sync/glue/preference_model_associator.cc b/chrome/browser/sync/glue/preference_model_associator.cc
index e96a4cf716f2cfa7a57ff8b8b933365f7961a4da..4757e25154bc473e872848e72bb840febd107bf6 100644
--- a/chrome/browser/sync/glue/preference_model_associator.cc
+++ b/chrome/browser/sync/glue/preference_model_associator.cc
@@ -51,7 +51,7 @@ bool PreferenceModelAssociator::AssociateModels() {
std::string tag = WideToUTF8(*it);
sync_api::ReadNode node(&trans);
- if (node.InitByClientTagLookup(tag)) {
+ if (node.InitByClientTagLookup(syncable::PREFERENCES, tag)) {
const sync_pb::PreferenceSpecifics& preference(
node.GetPreferenceSpecifics());
DCHECK_EQ(tag, preference.name());

Powered by Google App Engine
This is Rietveld 408576698