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

Side by Side Diff: sync/util/unrecoverable_error_info.cc

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « sync/util/unrecoverable_error_info.h ('k') | sync/util/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
(Empty)
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.
4
5 #include "sync/util/unrecoverable_error_info.h"
6
7 namespace browser_sync {
8
9 UnrecoverableErrorInfo::UnrecoverableErrorInfo()
10 : is_set_(false) {
11 }
12
13 UnrecoverableErrorInfo::UnrecoverableErrorInfo(
14 const tracked_objects::Location& location,
15 const std::string& message)
16 : location_(location),
17 message_(message),
18 is_set_(true) {
19 }
20
21 UnrecoverableErrorInfo::~UnrecoverableErrorInfo() {
22 }
23
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;
30 }
31
32 bool UnrecoverableErrorInfo::IsSet() const {
33 return is_set_;
34 }
35
36 const tracked_objects::Location& UnrecoverableErrorInfo::location() const {
37 return location_;
38 }
39
40 const std::string& UnrecoverableErrorInfo::message() const {
41 return message_;
42 }
43
44 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/util/unrecoverable_error_info.h ('k') | sync/util/weak_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698