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

Side by Side Diff: components/sync/api/sync_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/api/sync_data.cc ('k') | components/sync/api/sync_merge_result.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/api/sync_error.h" 5 #include "components/sync/api/sync_error.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "components/sync/base/model_type.h"
12 11
13 namespace syncer { 12 namespace syncer {
14 13
15 SyncError::SyncError() { 14 SyncError::SyncError() {
16 Clear(); 15 Clear();
17 } 16 }
18 17
19 SyncError::SyncError(const tracked_objects::Location& location, 18 SyncError::SyncError(const tracked_objects::Location& location,
20 ErrorType error_type, 19 ErrorType error_type,
21 const std::string& message, 20 const std::string& message,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 logSeverity >= ::logging::GetMinLogLevel()) 152 logSeverity >= ::logging::GetMinLogLevel())
154 << ModelTypeToString(model_type_) << " " << GetMessagePrefix() 153 << ModelTypeToString(model_type_) << " " << GetMessagePrefix()
155 << message_; 154 << message_;
156 } 155 }
157 156
158 void PrintTo(const SyncError& sync_error, std::ostream* os) { 157 void PrintTo(const SyncError& sync_error, std::ostream* os) {
159 *os << sync_error.ToString(); 158 *os << sync_error.ToString();
160 } 159 }
161 160
162 } // namespace syncer 161 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/sync_data.cc ('k') | components/sync/api/sync_merge_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698