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

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

Issue 10387144: [Sync] - Implement isolated model association. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. 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.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 0f5b9a42f57b89a2e43e6bb15d142e2387060d3e..a1895c20722ccfbb39bb54f1ab4fdf1384652bd4 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -370,7 +370,7 @@ bool ProfileSyncService::IsEncryptedDatatypeEnabled() const {
void ProfileSyncService::OnSyncConfigureDone(
DataTypeManager::ConfigureResult result) {
- if (failed_datatypes_handler_.UpdateFailedDatatypes(result.errors,
+ if (failed_datatypes_handler_.UpdateFailedDatatypes(result.failed_data_types,
FailedDatatypesHandler::STARTUP)) {
ReconfigureDatatypeManager();
}
@@ -1448,8 +1448,9 @@ void ProfileSyncService::Observe(int type,
configure_status_ != DataTypeManager::PARTIAL_SUCCESS) {
// Something catastrophic had happened. We should only have one
// error representing it.
- DCHECK(result->errors.size() == 1);
- SyncError error = result->errors.front();
+ DCHECK_EQ(result->failed_data_types.size(),
+ static_cast<unsigned int>(1));
+ SyncError error = result->failed_data_types.front();
DCHECK(error.IsSet());
std::string message =
"Sync configuration failed with status " +

Powered by Google App Engine
This is Rietveld 408576698