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