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

Unified Diff: sync/internal_api/public/util/syncer_error.cc

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass switches in test_profile_sync_service.cc Created 8 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: sync/internal_api/public/util/syncer_error.cc
diff --git a/sync/internal_api/public/util/syncer_error.cc b/sync/internal_api/public/util/syncer_error.cc
index d77821d3ace2e46b15d3d62a5d64e3fa9835dbf7..b5d88997ce7d6f1dc2054ec3918324e921d5ab15 100644
--- a/sync/internal_api/public/util/syncer_error.cc
+++ b/sync/internal_api/public/util/syncer_error.cc
@@ -32,4 +32,8 @@ const char* GetSyncerErrorString(SyncerError value) {
}
#undef ENUM_CASE
+bool SyncerErrorIsError(SyncerError error) {
+ return error != UNSET && error != SYNCER_OK;
+}
+
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698