| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/api/sync_error.h" | 5 #include "chrome/browser/sync/api/sync_error.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/tracked.h" | 8 #include "base/tracked.h" |
| 9 | 9 |
| 10 SyncError::SyncError() { | 10 SyncError::SyncError() { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 CHECK(IsSet()); | 77 CHECK(IsSet()); |
| 78 return message_; | 78 return message_; |
| 79 } | 79 } |
| 80 | 80 |
| 81 syncable::ModelType SyncError::type() const { | 81 syncable::ModelType SyncError::type() const { |
| 82 CHECK(IsSet()); | 82 CHECK(IsSet()); |
| 83 return type_; | 83 return type_; |
| 84 } | 84 } |
| 85 | 85 |
| 86 void SyncError::PrintLogError() const { | 86 void SyncError::PrintLogError() const { |
| 87 LAZY_STREAM(logging::LogMessage(location_->file_name(), | 87 LAZY_STREAM(logging::LogMessage(location_->file_name().as_string().c_str(), |
| 88 location_->line_number(), | 88 location_->line_number(), |
| 89 logging::LOG_ERROR).stream(), | 89 logging::LOG_ERROR).stream(), |
| 90 LOG_IS_ON(ERROR)) | 90 LOG_IS_ON(ERROR)) |
| 91 << syncable::ModelTypeToString(type_) << " Sync Error: " << message_; | 91 << syncable::ModelTypeToString(type_) << " Sync Error: " << message_; |
| 92 } | 92 } |
| OLD | NEW |