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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 | « chrome/browser/sync/api/sync_error.h ('k') | chrome/browser/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) 2011 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 "chrome/browser/sync/api/sync_error.h" 5 #include "chrome/browser/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 "chrome/browser/sync/syncable/model_type.h" 11 #include "sync/syncable/model_type.h"
12 12
13 SyncError::SyncError() { 13 SyncError::SyncError() {
14 Clear(); 14 Clear();
15 } 15 }
16 16
17 SyncError::SyncError(const tracked_objects::Location& location, 17 SyncError::SyncError(const tracked_objects::Location& location,
18 const std::string& message, 18 const std::string& message,
19 syncable::ModelType type) { 19 syncable::ModelType type) {
20 Init(location, message, type); 20 Init(location, message, type);
21 PrintLogError(); 21 PrintLogError();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 LAZY_STREAM(logging::LogMessage(location_->file_name(), 99 LAZY_STREAM(logging::LogMessage(location_->file_name(),
100 location_->line_number(), 100 location_->line_number(),
101 logging::LOG_ERROR).stream(), 101 logging::LOG_ERROR).stream(),
102 LOG_IS_ON(ERROR)) 102 LOG_IS_ON(ERROR))
103 << syncable::ModelTypeToString(type_) << ", Sync Error: " << message_; 103 << syncable::ModelTypeToString(type_) << ", Sync Error: " << message_;
104 } 104 }
105 105
106 void PrintTo(const SyncError& sync_error, std::ostream* os) { 106 void PrintTo(const SyncError& sync_error, std::ostream* os) {
107 *os << sync_error.ToString(); 107 *os << sync_error.ToString();
108 } 108 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/api/sync_error.h ('k') | chrome/browser/sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698