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

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

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 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
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_page_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 8d46b4965c7f5ce51b5874ec6e9c87d647a7f866..6932202850a432c1880d6868dd24c2e81f0a6907 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -194,18 +194,17 @@ class TestExtensionURLRequestContextGetter
std::unique_ptr<KeyedService> BuildHistoryService(
content::BrowserContext* context) {
- Profile* profile = Profile::FromBrowserContext(context);
return base::WrapUnique(new history::HistoryService(
base::WrapUnique(new ChromeHistoryClient(
- BookmarkModelFactory::GetForProfile(profile))),
- base::WrapUnique(new history::ContentVisitDelegate(profile))));
+ BookmarkModelFactory::GetForBrowserContext(context))),
+ base::WrapUnique(new history::ContentVisitDelegate(context))));
}
std::unique_ptr<KeyedService> BuildInMemoryURLIndex(
content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
std::unique_ptr<InMemoryURLIndex> in_memory_url_index(
- new InMemoryURLIndex(BookmarkModelFactory::GetForProfile(profile),
+ new InMemoryURLIndex(BookmarkModelFactory::GetForBrowserContext(profile),
HistoryServiceFactory::GetForProfile(
profile, ServiceAccessType::IMPLICIT_ACCESS),
TemplateURLServiceFactory::GetForProfile(profile),
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_page_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698