| 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 "components/sync/api/sync_error.h" | 5 #include "components/sync/model/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 | 11 |
| 12 namespace syncer { | 12 namespace syncer { |
| 13 | 13 |
| 14 SyncError::SyncError() { | 14 SyncError::SyncError() { |
| 15 Clear(); | 15 Clear(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 logSeverity >= ::logging::GetMinLogLevel()) | 152 logSeverity >= ::logging::GetMinLogLevel()) |
| 153 << ModelTypeToString(model_type_) << " " << GetMessagePrefix() | 153 << ModelTypeToString(model_type_) << " " << GetMessagePrefix() |
| 154 << message_; | 154 << message_; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void PrintTo(const SyncError& sync_error, std::ostream* os) { | 157 void PrintTo(const SyncError& sync_error, std::ostream* os) { |
| 158 *os << sync_error.ToString(); | 158 *os << sync_error.ToString(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace syncer | 161 } // namespace syncer |
| OLD | NEW |