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

Unified Diff: sync/internal_api/sync_backup_manager_unittest.cc

Issue 1246063003: Sync: Don't set/use Parent ID for non-hierarchical sync data types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: sync/internal_api/sync_backup_manager_unittest.cc
diff --git a/sync/internal_api/sync_backup_manager_unittest.cc b/sync/internal_api/sync_backup_manager_unittest.cc
index 2bf778ee187d693dd4be8f73c5d550daaced0c2f..6dd20db0ae40cd2d3e325fc716fa091fca0a24c8 100644
--- a/sync/internal_api/sync_backup_manager_unittest.cc
+++ b/sync/internal_api/sync_backup_manager_unittest.cc
@@ -78,12 +78,10 @@ class SyncBackupManagerTest : public syncer::SyncManager::Observer,
void CreateEntry(UserShare* user_share, ModelType type,
const std::string& client_tag) {
WriteTransaction trans(FROM_HERE, user_share);
- ReadNode type_root(&trans);
- EXPECT_EQ(BaseNode::INIT_OK, type_root.InitTypeRoot(type));
WriteNode node(&trans);
EXPECT_EQ(WriteNode::INIT_SUCCESS,
- node.InitUniqueByCreation(type, type_root, client_tag));
+ node.InitUniqueByCreation(type, client_tag));
}
void ConfigureSyncer() {

Powered by Google App Engine
This is Rietveld 408576698