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

Side by Side Diff: sync/internal_api/public/util/syncer_error.cc

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass switches in test_profile_sync_service.cc Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/internal_api/public/util/syncer_error.h" 5 #include "sync/internal_api/public/util/syncer_error.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
(...skipping 14 matching lines...) Expand all
25 ENUM_CASE(SERVER_RETURN_CLEAR_PENDING); 25 ENUM_CASE(SERVER_RETURN_CLEAR_PENDING);
26 ENUM_CASE(SERVER_RETURN_NOT_MY_BIRTHDAY); 26 ENUM_CASE(SERVER_RETURN_NOT_MY_BIRTHDAY);
27 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED); 27 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED);
28 ENUM_CASE(SYNCER_OK); 28 ENUM_CASE(SYNCER_OK);
29 } 29 }
30 NOTREACHED(); 30 NOTREACHED();
31 return "INVALID"; 31 return "INVALID";
32 } 32 }
33 #undef ENUM_CASE 33 #undef ENUM_CASE
34 34
35 bool SyncerErrorIsError(SyncerError error) {
36 return error != UNSET && error != SYNCER_OK;
37 }
38
35 } // namespace syncer 39 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698