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

Unified Diff: chrome/browser/sync/engine/syncer_error.cc

Issue 9036003: Avoid useless SYNC_CYCLE_CONTINUATION sync cycle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « chrome/browser/sync/engine/syncer_error.h ('k') | chrome/browser/sync/engine/syncer_proto_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncer_error.cc
diff --git a/chrome/browser/sync/engine/syncer_error.cc b/chrome/browser/sync/engine/syncer_error.cc
new file mode 100644
index 0000000000000000000000000000000000000000..906035f3d4c0540dbc08744df5d6f8eb27f9b86a
--- /dev/null
+++ b/chrome/browser/sync/engine/syncer_error.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/sync/engine/syncer_error.h"
+
+#include "base/logging.h"
+
+namespace browser_sync {
+
+#define ENUM_CASE(x) case x: return #x; break;
+const char* GetSyncerErrorString(SyncerError value) {
+ switch (value) {
+ ENUM_CASE(UNINITIALIZED);
+ ENUM_CASE(DIRECTORY_LOOKUP_FAILED);
+ ENUM_CASE(NETWORK_CONNECTION_UNAVAILABLE);
+ ENUM_CASE(NETWORK_IO_ERROR);
+ ENUM_CASE(SYNC_SERVER_ERROR);
+ ENUM_CASE(SYNC_AUTH_ERROR);
+ ENUM_CASE(SERVER_RETURN_INVALID_CREDENTIAL);
+ ENUM_CASE(SERVER_RETURN_UNKNOWN_ERROR);
+ ENUM_CASE(SERVER_RETURN_THROTTLED);
+ ENUM_CASE(SERVER_RETURN_TRANSIENT_ERROR);
+ ENUM_CASE(SERVER_RETURN_MIGRATION_DONE);
+ ENUM_CASE(SERVER_RETURN_CLEAR_PENDING);
+ ENUM_CASE(SERVER_RETURN_NOT_MY_BIRTHDAY);
+ ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED);
+ ENUM_CASE(NO_ERROR);
+ }
+ NOTREACHED();
+}
+#undef ENUM_CASE
+
+} // namespace browser_sync
+
« no previous file with comments | « chrome/browser/sync/engine/syncer_error.h ('k') | chrome/browser/sync/engine/syncer_proto_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698