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

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

Issue 302173004: sync: Specialize functions that fetch type root (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/GET_BY_SERVER_TAG_DEPRECATED/GET_BY_SERVER_TAG/ Created 6 years, 7 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/synced_device_tracker.cc
diff --git a/chrome/browser/sync/glue/synced_device_tracker.cc b/chrome/browser/sync/glue/synced_device_tracker.cc
index fa4770f0989ec1ad1eec1fb4161f66d1fe45a999..bf7fa9274fc78f9303bb4dd184b690e32702f28f 100644
--- a/chrome/browser/sync/glue/synced_device_tracker.cc
+++ b/chrome/browser/sync/glue/synced_device_tracker.cc
@@ -104,8 +104,7 @@ void SyncedDeviceTracker::GetAllSyncedDeviceInfo(
syncer::ReadTransaction trans(FROM_HERE, user_share_);
syncer::ReadNode root_node(&trans);
- if (root_node.InitByTagLookup(
- syncer::ModelTypeToRootTag(syncer::DEVICE_INFO)) !=
+ if (root_node.InitTypeRoot(syncer::DEVICE_INFO) !=
syncer::BaseNode::INIT_OK) {
return;
}
@@ -182,7 +181,7 @@ void SyncedDeviceTracker::WriteDeviceInfo(
} else {
syncer::ReadNode type_root(&trans);
syncer::BaseNode::InitByLookupResult type_root_lookup_result =
- type_root.InitByTagLookup(ModelTypeToRootTag(syncer::DEVICE_INFO));
+ type_root.InitTypeRoot(syncer::DEVICE_INFO);
DCHECK_EQ(syncer::BaseNode::INIT_OK, type_root_lookup_result);
syncer::WriteNode new_node(&trans);
« no previous file with comments | « chrome/browser/sync/glue/bookmark_model_associator.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698