| 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 "sync/internal_api/public/util/unrecoverable_error_info.h" | 5 #include "components/sync/base/unrecoverable_error_info.h" |
| 6 | 6 |
| 7 namespace syncer { | 7 namespace syncer { |
| 8 | 8 |
| 9 UnrecoverableErrorInfo::UnrecoverableErrorInfo() | 9 UnrecoverableErrorInfo::UnrecoverableErrorInfo() : is_set_(false) {} |
| 10 : is_set_(false) { | |
| 11 } | |
| 12 | 10 |
| 13 UnrecoverableErrorInfo::UnrecoverableErrorInfo( | 11 UnrecoverableErrorInfo::UnrecoverableErrorInfo( |
| 14 const tracked_objects::Location& location, | 12 const tracked_objects::Location& location, |
| 15 const std::string& message) | 13 const std::string& message) |
| 16 : location_(location), | 14 : location_(location), message_(message), is_set_(true) {} |
| 17 message_(message), | |
| 18 is_set_(true) { | |
| 19 } | |
| 20 | 15 |
| 21 UnrecoverableErrorInfo::~UnrecoverableErrorInfo() { | 16 UnrecoverableErrorInfo::~UnrecoverableErrorInfo() {} |
| 22 } | |
| 23 | 17 |
| 24 void UnrecoverableErrorInfo::Reset( | 18 void UnrecoverableErrorInfo::Reset(const tracked_objects::Location& location, |
| 25 const tracked_objects::Location& location, | 19 const std::string& message) { |
| 26 const std::string& message) { | |
| 27 location_ = location; | 20 location_ = location; |
| 28 message_ = message; | 21 message_ = message; |
| 29 is_set_ = true; | 22 is_set_ = true; |
| 30 } | 23 } |
| 31 | 24 |
| 32 bool UnrecoverableErrorInfo::IsSet() const { | 25 bool UnrecoverableErrorInfo::IsSet() const { |
| 33 return is_set_; | 26 return is_set_; |
| 34 } | 27 } |
| 35 | 28 |
| 36 const tracked_objects::Location& UnrecoverableErrorInfo::location() const { | 29 const tracked_objects::Location& UnrecoverableErrorInfo::location() const { |
| 37 return location_; | 30 return location_; |
| 38 } | 31 } |
| 39 | 32 |
| 40 const std::string& UnrecoverableErrorInfo::message() const { | 33 const std::string& UnrecoverableErrorInfo::message() const { |
| 41 return message_; | 34 return message_; |
| 42 } | 35 } |
| 43 | 36 |
| 44 } // namespace syncer | 37 } // namespace syncer |
| OLD | NEW |