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