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_ |