Infobar material design refresh: bg color
[chromium-blink-merge.git] / sync / internal_api / public / util / unrecoverable_error_info.cc
blob2234650330130f1343d963552ea780aadef074e9
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
3 // found in the LICENSE file.
5 #include "sync/internal_api/public/util/unrecoverable_error_info.h"
7 namespace syncer {
9 UnrecoverableErrorInfo::UnrecoverableErrorInfo()
10 : is_set_(false) {
13 UnrecoverableErrorInfo::UnrecoverableErrorInfo(
14 const tracked_objects::Location& location,
15 const std::string& message)
16 : location_(location),
17 message_(message),
18 is_set_(true) {
21 UnrecoverableErrorInfo::~UnrecoverableErrorInfo() {
24 void UnrecoverableErrorInfo::Reset(
25 const tracked_objects::Location& location,
26 const std::string& message) {
27 location_ = location;
28 message_ = message;
29 is_set_ = true;
32 bool UnrecoverableErrorInfo::IsSet() const {
33 return is_set_;
36 const tracked_objects::Location& UnrecoverableErrorInfo::location() const {
37 return location_;
40 const std::string& UnrecoverableErrorInfo::message() const {
41 return message_;
44 } // namespace syncer