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

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

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.h
diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h
index 3dd4dd0404ea66ba8cb24ec1984bc2ca6c6f97a3..69959ab42e570dd801745969d9ba8dd1d20ff902 100644
--- a/sync/internal_api/public/util/syncer_error.h
+++ b/sync/internal_api/public/util/syncer_error.h
@@ -40,6 +40,10 @@ enum SyncerError {
const char * GetSyncerErrorString(SyncerError);
+// Helper to check that |error| is set to something (not UNSET) and is not
+// SYNCER_OK.
+bool SyncerErrorIsError(SyncerError error);
+
} // namespace syncer
#endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_

Powered by Google App Engine
This is Rietveld 408576698