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

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

Issue 7778033: Add trace code to track all posted tasks in message_loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/logging.h" 7 #include "base/logging.h"
8 #include "base/tracked.h" 8 #include "base/tracked.h"
9 9
10 SyncError::SyncError() { 10 SyncError::SyncError() {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 CHECK(IsSet()); 77 CHECK(IsSet());
78 return message_; 78 return message_;
79 } 79 }
80 80
81 syncable::ModelType SyncError::type() const { 81 syncable::ModelType SyncError::type() const {
82 CHECK(IsSet()); 82 CHECK(IsSet());
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().as_string().c_str(),
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

Powered by Google App Engine
This is Rietveld 408576698