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

Unified Diff: chrome/browser/sync/profile_sync_service.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, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 4480774cb8b4e869c4cda223fe9ed6f8d6043f04..fa6b1e452b2edc913cd8463b57fdf90164ae2dee 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -138,7 +138,7 @@ void ProfileSyncService::Initialize() {
// in about:sync.
unrecoverable_error_detected_ = false;
unrecoverable_error_message_.clear();
- unrecoverable_error_location_.reset();
+ unrecoverable_error_location_ = tracked_objects::Location();
// Watch the preference that indicates sync is managed so we can take
// appropriate action.
@@ -594,11 +594,7 @@ void ProfileSyncService::OnUnrecoverableError(
const std::string& message) {
unrecoverable_error_detected_ = true;
unrecoverable_error_message_ = message;
- unrecoverable_error_location_.reset(
- new tracked_objects::Location(from_here.function_name(),
- from_here.file_name(),
- from_here.line_number(),
- from_here.program_counter()));
+ unrecoverable_error_location_ = from_here;
// Tell the wizard so it can inform the user only if it is already open.
wizard_.Step(SyncSetupWizard::FATAL_ERROR);

Powered by Google App Engine
This is Rietveld 408576698