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

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

Issue 232003005: [Sync] Add support for retrying a getupdates due to a context change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 8 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 10 matching lines...) Expand all
21 ENUM_CASE(SERVER_RETURN_UNKNOWN_ERROR); 21 ENUM_CASE(SERVER_RETURN_UNKNOWN_ERROR);
22 ENUM_CASE(SERVER_RETURN_THROTTLED); 22 ENUM_CASE(SERVER_RETURN_THROTTLED);
23 ENUM_CASE(SERVER_RETURN_TRANSIENT_ERROR); 23 ENUM_CASE(SERVER_RETURN_TRANSIENT_ERROR);
24 ENUM_CASE(SERVER_RETURN_MIGRATION_DONE); 24 ENUM_CASE(SERVER_RETURN_MIGRATION_DONE);
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_RETURN_CONFLICT); 27 ENUM_CASE(SERVER_RETURN_CONFLICT);
28 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED); 28 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED);
29 ENUM_CASE(SERVER_RETURN_DISABLED_BY_ADMIN); 29 ENUM_CASE(SERVER_RETURN_DISABLED_BY_ADMIN);
30 ENUM_CASE(SERVER_MORE_TO_DOWNLOAD); 30 ENUM_CASE(SERVER_MORE_TO_DOWNLOAD);
31 ENUM_CASE(DATATYPE_TRIGGERED_RETRY);
31 ENUM_CASE(SYNCER_OK); 32 ENUM_CASE(SYNCER_OK);
32 } 33 }
33 NOTREACHED(); 34 NOTREACHED();
34 return "INVALID"; 35 return "INVALID";
35 } 36 }
36 #undef ENUM_CASE 37 #undef ENUM_CASE
37 38
38 bool SyncerErrorIsError(SyncerError error) { 39 bool SyncerErrorIsError(SyncerError error) {
39 return error != UNSET 40 return error != UNSET
40 && error != SYNCER_OK 41 && error != SYNCER_OK
41 && error != SERVER_MORE_TO_DOWNLOAD; 42 && error != SERVER_MORE_TO_DOWNLOAD;
42 } 43 }
43 44
44 } // namespace syncer 45 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698