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

Unified Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index a937ef190f9fe10ec65dbb48ca93cf9129e07f43..fb57628d63179608661aae4ee8e03d075fe58fe0 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -851,7 +851,10 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() {
DCHECK(base::MessageLoop::current());
base::CancelableTaskTracker tracker;
- history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &tracker);
+ history_service->ScheduleDBTask(
+ scoped_ptr<history::HistoryDBTask>(
+ new QuittingHistoryDBTask()),
+ &tracker);
base::MessageLoop::current()->Run();
}
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698