Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/sync/base/unrecoverable_error_info.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/base/unrecoverable_error_info.h ('k') | components/sync/base/weak_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « components/sync/base/unrecoverable_error_info.h ('k') | components/sync/base/weak_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698