summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/util/syncer_error.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-15 06:18:36 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-15 06:18:36 +0000
commitf706df5706936983f97b4898997da87029787da2 (patch)
treea1315c180059844bf0bc6344452f18544da6c91f /sync/internal_api/public/util/syncer_error.h
parent639ec914f10c955f3b0c0c7dc2b1cdfd6b9f9527 (diff)
downloadchromium_src-f706df5706936983f97b4898997da87029787da2.zip
chromium_src-f706df5706936983f97b4898997da87029787da2.tar.gz
chromium_src-f706df5706936983f97b4898997da87029787da2.tar.bz2
sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components.
Cleans up backoff retry override code to use InternalComponentsFactory::Switches rather than global bool hack. Also puts keystore encryption flag atop new mechanism. (TBR sky for new chrome_switch). TBR=sky@chromium.org BUG=142029, 139839 Review URL: https://chromiumcodereview.appspot.com/10837231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public/util/syncer_error.h')
-rw-r--r--sync/internal_api/public/util/syncer_error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h
index 3dd4dd0..69959ab 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_