Index: chrome/browser/sync/glue/theme_model_associator.cc |
diff --git a/chrome/browser/sync/glue/theme_model_associator.cc b/chrome/browser/sync/glue/theme_model_associator.cc |
index 8ea538a3b4bc862491092cab5dd0a9b2bcc4550e..1d9682e5187dc222dea29140b4ce58f05a2e66c7 100644 |
--- a/chrome/browser/sync/glue/theme_model_associator.cc |
+++ b/chrome/browser/sync/glue/theme_model_associator.cc |
@@ -68,8 +68,10 @@ SyncError ThemeModelAssociator::AssociateModels() { |
} else { |
// Set the sync data from the current theme. |
sync_api::WriteNode node(&trans); |
- if (!node.InitUniqueByCreation(syncable::THEMES, root, |
- kCurrentThemeClientTag)) { |
+ sync_api::WriteNode::InitUniqueByCreationResult result = |
+ node.InitUniqueByCreation(syncable::THEMES, root, |
+ kCurrentThemeClientTag); |
+ if (result != sync_api::WriteNode::INIT_SUCCESS) { |
return error_handler_->CreateAndUploadError( |
FROM_HERE, |
"Could not create current theme node.", |