Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index 4e394fc242c26e787c59b04de1df694cae081d28..1182f8367dc4b5f7e913c077043ce9875bfe6d99 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -30,6 +30,7 @@ |
#include "chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h" |
#include "chrome/browser/guest_view/guest_view_manager.h" |
#include "chrome/browser/history/history_backend.h" |
+#include "chrome/browser/history/history_client_factory.h" |
#include "chrome/browser/history/history_db_task.h" |
#include "chrome/browser/history/history_service.h" |
#include "chrome/browser/history/history_service_factory.h" |
@@ -427,7 +428,9 @@ void TestingProfile::CreateFaviconService() { |
} |
static KeyedService* BuildHistoryService(content::BrowserContext* profile) { |
- return new HistoryService(static_cast<Profile*>(profile)); |
+ return new HistoryService( |
+ HistoryClientFactory::GetForProfile(static_cast<Profile*>(profile)), |
+ static_cast<Profile*>(profile)); |
} |
bool TestingProfile::CreateHistoryService(bool delete_file, bool no_db) { |