| OLD | NEW |
| 1 // Copyright (c) 2011 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 "chrome/browser/sync/protocol/sync_protocol_error.h" | 5 #include "sync/protocol/sync_protocol_error.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace browser_sync { |
| 13 #define ENUM_CASE(x) case x: return #x; break; | 13 #define ENUM_CASE(x) case x: return #x; break; |
| 14 | 14 |
| 15 const char* GetSyncErrorTypeString(SyncProtocolErrorType type) { | 15 const char* GetSyncErrorTypeString(SyncProtocolErrorType type) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 value->SetString("ErrorType", | 54 value->SetString("ErrorType", |
| 55 GetSyncErrorTypeString(error_type)); | 55 GetSyncErrorTypeString(error_type)); |
| 56 value->SetString("ErrorDescription", error_description); | 56 value->SetString("ErrorDescription", error_description); |
| 57 value->SetString("url", url); | 57 value->SetString("url", url); |
| 58 value->SetString("action", GetClientActionString(action)); | 58 value->SetString("action", GetClientActionString(action)); |
| 59 return value; | 59 return value; |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace browser_sync | 62 } // namespace browser_sync |
| 63 | 63 |
| OLD | NEW |