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

Side by Side Diff: components/sync/protocol/sync_protocol_error.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 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
« no previous file with comments | « components/sync/engine_impl/update_applicator.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/sync/protocol/sync_protocol_error.h" 5 #include "components/sync/protocol/sync_protocol_error.h"
6 6
7 #include <string>
8
9 #include "base/logging.h" 7 #include "base/logging.h"
10 #include "base/values.h"
11 8
12 namespace syncer { 9 namespace syncer {
13 #define ENUM_CASE(x) \ 10 #define ENUM_CASE(x) \
14 case x: \ 11 case x: \
15 return #x; \ 12 return #x; \
16 break; 13 break;
17 14
18 const char* GetSyncErrorTypeString(SyncProtocolErrorType type) { 15 const char* GetSyncErrorTypeString(SyncProtocolErrorType type) {
19 switch (type) { 16 switch (type) {
20 ENUM_CASE(SYNC_SUCCESS); 17 ENUM_CASE(SYNC_SUCCESS);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 base::DictionaryValue* SyncProtocolError::ToValue() const { 55 base::DictionaryValue* SyncProtocolError::ToValue() const {
59 base::DictionaryValue* value = new base::DictionaryValue(); 56 base::DictionaryValue* value = new base::DictionaryValue();
60 value->SetString("ErrorType", GetSyncErrorTypeString(error_type)); 57 value->SetString("ErrorType", GetSyncErrorTypeString(error_type));
61 value->SetString("ErrorDescription", error_description); 58 value->SetString("ErrorDescription", error_description);
62 value->SetString("url", url); 59 value->SetString("url", url);
63 value->SetString("action", GetClientActionString(action)); 60 value->SetString("action", GetClientActionString(action));
64 return value; 61 return value;
65 } 62 }
66 63
67 } // namespace syncer 64 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/update_applicator.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698