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

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

Issue 872313005: Remove dependency on visitedlink from history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@init-prefs
Patch Set: Created 5 years, 11 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 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;
}

Powered by Google App Engine
This is Rietveld 408576698