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

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

Issue 10310113: Add additional error logging to investigate Autocomplete Sync failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: De-nitting Created 8 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/profile_sync_service_preference_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_preference_unittest.cc b/chrome/browser/sync/profile_sync_service_preference_unittest.cc
index 618ccbd092a3663086b90e7dfeb9c8c06bcf38fb..d85830f1168885db8f63815d7000bce5ce192dbe 100644
--- a/chrome/browser/sync/profile_sync_service_preference_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_preference_unittest.cc
@@ -75,7 +75,10 @@ class ProfileSyncServicePreferenceTest
sync_api::BaseNode::INIT_OK) {
return WriteSyncedValue(name, value, &tag_node);
}
- if (node.InitUniqueByCreation(syncable::PREFERENCES, root, name))
+
+ sync_api::WriteNode::InitUniqueByCreationResult result =
+ node.InitUniqueByCreation(syncable::PREFERENCES, root, name);
+ if (result == sync_api::WriteNode::INIT_SUCCESS)
return WriteSyncedValue(name, value, &node);
return sync_api::kInvalidId;

Powered by Google App Engine
This is Rietveld 408576698