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

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

Issue 469803004: Revert 289115 "Revert 288464 "[Sync] Cleanup datatype configurat..." (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 289352)
+++ trunk/src/components/sync_driver/data_type_manager.cc (working copy)
@@ -10,25 +10,10 @@
: 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,
- 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) {
+ syncer::ModelTypeSet requested_types)
+ : status(status), requested_types(requested_types) {
}
DataTypeManager::ConfigureResult::~ConfigureResult() {
@@ -43,12 +28,11 @@
return "Aborted";
case UNRECOVERABLE_ERROR:
return "Unrecoverable Error";
- case PARTIAL_SUCCESS:
- return "Partial Success";
- default:
+ case UNKNOWN:
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