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

Unified Diff: components/sync/base/syncer_error.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « components/sync/base/syncer_error.h ('k') | components/sync/base/test_unrecoverable_error_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/syncer_error.cc
diff --git a/sync/internal_api/public/util/syncer_error.cc b/components/sync/base/syncer_error.cc
similarity index 85%
rename from sync/internal_api/public/util/syncer_error.cc
rename to components/sync/base/syncer_error.cc
index 78445384a662930d9f437cb10608a5c00dc3bc94..4adaa060e406583a20be456aca4b94d0944edb3e 100644
--- a/sync/internal_api/public/util/syncer_error.cc
+++ b/components/sync/base/syncer_error.cc
@@ -2,13 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/internal_api/public/util/syncer_error.h"
+#include "components/sync/base/syncer_error.h"
#include "base/logging.h"
namespace syncer {
-#define ENUM_CASE(x) case x: return #x; break;
+#define ENUM_CASE(x) \
+ case x: \
+ return #x; \
+ break;
const char* GetSyncerErrorString(SyncerError value) {
switch (value) {
ENUM_CASE(UNSET);
@@ -40,9 +43,8 @@ const char* GetSyncerErrorString(SyncerError value) {
#undef ENUM_CASE
bool SyncerErrorIsError(SyncerError error) {
- return error != UNSET
- && error != SYNCER_OK
- && error != SERVER_MORE_TO_DOWNLOAD;
+ return error != UNSET && error != SYNCER_OK &&
+ error != SERVER_MORE_TO_DOWNLOAD;
}
} // namespace syncer
« no previous file with comments | « components/sync/base/syncer_error.h ('k') | components/sync/base/test_unrecoverable_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698