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

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

Issue 441623002: Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 fb57628d63179608661aae4ee8e03d075fe58fe0..99469ab3fc506ddb40cd7eb1d8b4d2b2e1875b74 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -530,7 +530,8 @@ static KeyedService* BuildChromeBookmarkClient(
static KeyedService* BuildChromeHistoryClient(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
- return new ChromeHistoryClient(BookmarkModelFactory::GetForProfile(profile));
+ return new ChromeHistoryClient(BookmarkModelFactory::GetForProfile(profile),
sdefresne 2014/08/04 08:47:19 Pass the Profile* as an additional parameter.
+ profile->GetTopSites());
}
void TestingProfile::CreateBookmarkModel(bool delete_file) {
« chrome/browser/history/top_sites_observer.h ('K') | « chrome/browser/history/top_sites_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698