Index: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc |
=================================================================== |
--- chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (revision 147715) |
+++ chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (working copy) |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/bookmarks/bookmark_model.h" |
#include "chrome/browser/bookmarks/bookmark_utils.h" |
#include "chrome/browser/history/history.h" |
+#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/search_engines/template_url.h" |
#include "chrome/browser/search_engines/template_url_service.h" |
@@ -298,8 +299,8 @@ |
void AddHistoryEntry(const TestHistoryEntry& entry, const Time& time) { |
Profile* profile = browser()->profile(); |
- HistoryService* history_service = |
- profile->GetHistoryService(Profile::EXPLICIT_ACCESS); |
+ HistoryService* history_service = HistoryServiceFactory::GetForProfile( |
+ profile, Profile::EXPLICIT_ACCESS); |
ASSERT_TRUE(history_service); |
if (!history_service->BackendLoaded()) { |