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

Unified Diff: trunk/src/components/sync_driver/data_type_manager.cc

Issue 468643002: Revert 288464 "[Sync] Cleanup datatype configuration error handl..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/components/sync_driver/data_type_manager.cc
===================================================================
--- trunk/src/components/sync_driver/data_type_manager.cc (revision 289114)
+++ trunk/src/components/sync_driver/data_type_manager.cc (working copy)
@@ -10,10 +10,25 @@
: status(UNKNOWN) {
}
+DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status,
+ syncer::ModelTypeSet
+ requested_types)
+ : status(status),
+ requested_types(requested_types) {
+ DCHECK_EQ(OK, status);
+}
+
DataTypeManager::ConfigureResult::ConfigureResult(
ConfigureStatus status,
- syncer::ModelTypeSet requested_types)
- : status(status), requested_types(requested_types) {
+ syncer::ModelTypeSet requested_types,
+ std::map<syncer::ModelType, syncer::SyncError> failed_data_types,
+ syncer::ModelTypeSet unfinished_data_types,
+ syncer::ModelTypeSet needs_crypto)
+ : status(status),
+ requested_types(requested_types),
+ failed_data_types(failed_data_types),
+ unfinished_data_types(unfinished_data_types),
+ needs_crypto(needs_crypto) {
}
DataTypeManager::ConfigureResult::~ConfigureResult() {
@@ -28,11 +43,12 @@
return "Aborted";
case UNRECOVERABLE_ERROR:
return "Unrecoverable Error";
- case UNKNOWN:
+ case PARTIAL_SUCCESS:
+ return "Partial Success";
+ default:
NOTREACHED();
return std::string();
}
- return std::string();
}
} // namespace sync_driver
« no previous file with comments | « trunk/src/components/sync_driver/data_type_manager.h ('k') | trunk/src/components/sync_driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698