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

Unified Diff: sync/api/sync_error.cc

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 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
« no previous file with comments | « sync/api/sync_error.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_error.cc
diff --git a/sync/api/sync_error.cc b/sync/api/sync_error.cc
index ee6885cb229285f479b8bc57284dda35d5068bb2..1100a11028d2cfe83d3edeb05f0cb93dcfdb29bb 100644
--- a/sync/api/sync_error.cc
+++ b/sync/api/sync_error.cc
@@ -34,9 +34,12 @@ SyncError::SyncError(const tracked_objects::Location& location,
case CRYPTO_ERROR:
type_message = "cryptographer error was encountered: ";
break;
- default:
- NOTREACHED();
- type_message = "invalid error: ";
+ case UNREADY_ERROR:
+ type_message = "unready error was encountered: ";
+ break;
+ case UNSET:
+ NOTREACHED() << "Invalid error type";
+ return;
}
Init(location, type_message + custom_message, model_type, error_type);
PrintLogError();
« no previous file with comments | « sync/api/sync_error.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698