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

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

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/location.h"
7 #include "base/logging.h" 8 #include "base/logging.h"
8 #include "base/tracked.h"
9 9
10 SyncError::SyncError() { 10 SyncError::SyncError() {
11 Clear(); 11 Clear();
12 } 12 }
13 13
14 SyncError::SyncError(const tracked_objects::Location& location, 14 SyncError::SyncError(const tracked_objects::Location& location,
15 const std::string& message, 15 const std::string& message,
16 syncable::ModelType type) { 16 syncable::ModelType type) {
17 Init(location, message, type); 17 Init(location, message, type);
18 PrintLogError(); 18 PrintLogError();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return type_; 83 return type_;
84 } 84 }
85 85
86 void SyncError::PrintLogError() const { 86 void SyncError::PrintLogError() const {
87 LAZY_STREAM(logging::LogMessage(location_->file_name(), 87 LAZY_STREAM(logging::LogMessage(location_->file_name(),
88 location_->line_number(), 88 location_->line_number(),
89 logging::LOG_ERROR).stream(), 89 logging::LOG_ERROR).stream(),
90 LOG_IS_ON(ERROR)) 90 LOG_IS_ON(ERROR))
91 << syncable::ModelTypeToString(type_) << " Sync Error: " << message_; 91 << syncable::ModelTypeToString(type_) << " Sync Error: " << message_;
92 } 92 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/abstract_profile_sync_service_test.cc ('k') | chrome/browser/sync/api/sync_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698