Index: chrome/browser/sync/glue/typed_url_model_associator.cc |
diff --git a/chrome/browser/sync/glue/typed_url_model_associator.cc b/chrome/browser/sync/glue/typed_url_model_associator.cc |
index ad90e63ed38d903729161237383ccf6456983dde..45e9b79cc51115b7096dd790dd3b54f844a39b52 100644 |
--- a/chrome/browser/sync/glue/typed_url_model_associator.cc |
+++ b/chrome/browser/sync/glue/typed_url_model_associator.cc |
@@ -273,8 +273,10 @@ SyncError TypedUrlModelAssociator::DoAssociateModels() { |
} else { |
// Sync has never seen this URL before. |
sync_api::WriteNode node(&trans); |
- if (!node.InitUniqueByCreation(syncable::TYPED_URLS, |
- typed_url_root, tag)) { |
+ sync_api::WriteNode::InitUniqueByCreationResult result = |
+ node.InitUniqueByCreation(syncable::TYPED_URLS, |
+ typed_url_root, tag); |
+ if (result != sync_api::WriteNode::INIT_SUCCESS) { |
return error_handler_->CreateAndUploadError( |
FROM_HERE, |
"Failed to create typed_url sync node: " + tag, |