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

Unified Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.cc

Issue 387923002: Make HistoryDBTask not refcounted, and ensure it's destroyed on its origin thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert unnecessary changes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
diff --git a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
index 9585fb97b11e7a046013018615e1ac8aa9b7a8e5..8b7ffd7ec2c53f2448e96c36d35d4bd19d407756 100644
--- a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
+++ b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
@@ -155,9 +155,9 @@ void ProfileSigninConfirmationHelper::CheckHasTypedURLs() {
return;
}
service->ScheduleDBTask(
- new HasTypedURLsTask(
+ scoped_ptr<history::HistoryDBTask>(new HasTypedURLsTask(
base::Bind(&ProfileSigninConfirmationHelper::ReturnResult,
- base::Unretained(this))),
+ base::Unretained(this)))),
&task_tracker_);
}

Powered by Google App Engine
This is Rietveld 408576698