Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index 2493f61930632b97e094230c1d07a2db3424f28b..61b78bea1e297c2d730d63a7cce6635f4b2a6fba 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -23,6 +23,7 @@ |
#include "chrome/browser/favicon/favicon_service_factory.h" |
#include "chrome/browser/history/chrome_history_client.h" |
#include "chrome/browser/history/chrome_history_client_factory.h" |
+#include "chrome/browser/history/content_visit_delegate.h" |
#include "chrome/browser/history/history_backend.h" |
#include "chrome/browser/history/history_service.h" |
#include "chrome/browser/history/history_service_factory.h" |
@@ -215,8 +216,11 @@ KeyedService* BuildFaviconService(content::BrowserContext* profile) { |
KeyedService* BuildHistoryService(content::BrowserContext* context) { |
Profile* profile = static_cast<Profile*>(context); |
- HistoryService* history_service = new HistoryService( |
- ChromeHistoryClientFactory::GetForProfile(profile), profile); |
+ scoped_ptr<history::VisitDelegate> visit_delegate( |
+ new ContentVisitDelegate(profile)); |
+ HistoryService* history_service = |
+ new HistoryService(ChromeHistoryClientFactory::GetForProfile(profile), |
+ visit_delegate.Pass()); |
return history_service; |
} |