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

Unified Diff: components/sync/driver/model_type_controller.cc

Issue 2623723002: [Sync] Remove ModelError::IsSet() in favor of base::Optional. (Closed)
Patch Set: Rebase. Created 3 years, 11 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: components/sync/driver/model_type_controller.cc
diff --git a/components/sync/driver/model_type_controller.cc b/components/sync/driver/model_type_controller.cc
index 09a65fb6b2fb62f0cab3c58891f2f3a711c713ef..b0d28cf087cf72346d312fa894b5625b02ed746e 100644
--- a/components/sync/driver/model_type_controller.cc
+++ b/components/sync/driver/model_type_controller.cc
@@ -255,7 +255,6 @@ DataTypeController::State ModelTypeController::state() const {
void ModelTypeController::ReportModelError(const ModelError& error) {
DCHECK(CalledOnValidThread());
- DCHECK(error.IsSet());
LoadModelsDone(UNRECOVERABLE_ERROR,
SyncError(error.location(), SyncError::DATATYPE_ERROR,
error.message(), type()));

Powered by Google App Engine
This is Rietveld 408576698