| 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/location.h" | 
| 7 #include "base/logging.h" | 8 #include "base/logging.h" | 
| 8 #include "base/tracked.h" |  | 
| 9 | 9 | 
| 10 SyncError::SyncError() { | 10 SyncError::SyncError() { | 
| 11   Clear(); | 11   Clear(); | 
| 12 } | 12 } | 
| 13 | 13 | 
| 14 SyncError::SyncError(const tracked_objects::Location& location, | 14 SyncError::SyncError(const tracked_objects::Location& location, | 
| 15                      const std::string& message, | 15                      const std::string& message, | 
| 16                      syncable::ModelType type) { | 16                      syncable::ModelType type) { | 
| 17   Init(location, message, type); | 17   Init(location, message, type); | 
| 18   PrintLogError(); | 18   PrintLogError(); | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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(), | 
| 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 | 
|---|