Index: chrome/browser/history/history_browsertest.cc |
diff --git a/chrome/browser/history/history_browsertest.cc b/chrome/browser/history/history_browsertest.cc |
index d84de7fe47a3a40e0ee89cc1d40b338121e643d2..a233ca2b0cf882c89258b58211849ae0b97e26e6 100644 |
--- a/chrome/browser/history/history_browsertest.cc |
+++ b/chrome/browser/history/history_browsertest.cc |
@@ -91,7 +91,7 @@ class HistoryBrowserTest : public InProcessBrowserTest { |
HistoryService* history = |
HistoryServiceFactory::GetForProfile(GetProfile(), |
Profile::EXPLICIT_ACCESS); |
- history->HistoryService::ScheduleDBTask(task, &request_consumer); |
+ history->HistoryService::ScheduleDBTask(task.get(), &request_consumer); |
content::RunMessageLoop(); |
} |