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

Side by Side Diff: sync/api/sync_error.cc

Issue 10690071: [Sync] Move model_type* from syncable/ to base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/api/sync_error.h ('k') | sync/api/syncable_service.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/api/sync_error.h" 5 #include "sync/api/sync_error.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "sync/internal_api/public/syncable/model_type.h" 11 #include "sync/internal_api/public/base/model_type.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 SyncError::SyncError() { 15 SyncError::SyncError() {
16 Clear(); 16 Clear();
17 } 17 }
18 18
19 SyncError::SyncError(const tracked_objects::Location& location, 19 SyncError::SyncError(const tracked_objects::Location& location,
20 const std::string& message, 20 const std::string& message,
21 syncable::ModelType type) { 21 syncable::ModelType type) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 logging::LOG_ERROR).stream(), 103 logging::LOG_ERROR).stream(),
104 LOG_IS_ON(ERROR)) 104 LOG_IS_ON(ERROR))
105 << syncable::ModelTypeToString(type_) << ", Sync Error: " << message_; 105 << syncable::ModelTypeToString(type_) << ", Sync Error: " << message_;
106 } 106 }
107 107
108 void PrintTo(const SyncError& sync_error, std::ostream* os) { 108 void PrintTo(const SyncError& sync_error, std::ostream* os) {
109 *os << sync_error.ToString(); 109 *os << sync_error.ToString();
110 } 110 }
111 111
112 } // namespace syncer 112 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/sync_error.h ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698