| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |