Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4707)

Unified Diff: chrome/test/base/testing_profile.cc

Issue 305443004: Introduce HistoryClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@371825
Patch Set: Address comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698