Index: chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
index b94dbc9c66bb32eabdfbffde89b4f41c9ec00850..091a0d44dae0300c4b504416df9cf85aab91b9e7 100644 |
--- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc |
@@ -19,6 +19,7 @@ |
#include "base/time/time.h" |
#include "chrome/browser/chrome_notification_types.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_notifications.h" |
#include "chrome/browser/history/history_service.h" |
@@ -105,7 +106,8 @@ class HistoryBackendMock : public HistoryBackend { |
class HistoryServiceMock : public HistoryService { |
public: |
- explicit HistoryServiceMock(Profile* profile) : HistoryService(profile) {} |
+ explicit HistoryServiceMock(history::HistoryClient* client, Profile* profile) |
+ : HistoryService(client, profile) {} |
MOCK_METHOD2(ScheduleDBTask, void(history::HistoryDBTask*, |
CancelableRequestConsumerBase*)); |
MOCK_METHOD0(Shutdown, void()); |
@@ -119,7 +121,9 @@ class HistoryServiceMock : public HistoryService { |
}; |
KeyedService* BuildHistoryService(content::BrowserContext* profile) { |
- return new HistoryServiceMock(static_cast<Profile*>(profile)); |
+ return new HistoryServiceMock( |
+ HistoryClientFactory::GetForProfile(static_cast<Profile*>(profile)), |
+ static_cast<Profile*>(profile)); |
} |
class TestTypedUrlModelAssociator : public TypedUrlModelAssociator { |