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

Unified Diff: chrome/browser/ui/find_bar/find_bar_state_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 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/browser/ui/find_bar/find_bar_state_factory.cc
diff --git a/chrome/browser/ui/find_bar/find_bar_state_factory.cc b/chrome/browser/ui/find_bar/find_bar_state_factory.cc
index a29aebc5d9c9f144609012fa398b4a5ec60c9c59..bfd1a48216530b4e2bd7e95914e2fa1c5ed6cf07 100644
--- a/chrome/browser/ui/find_bar/find_bar_state_factory.cc
+++ b/chrome/browser/ui/find_bar/find_bar_state_factory.cc
@@ -12,7 +12,7 @@
// static
FindBarState* FindBarStateFactory::GetForProfile(Profile* profile) {
return static_cast<FindBarState*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -35,13 +35,14 @@ FindBarStateFactory* FindBarStateFactory::GetInstance() {
}
FindBarStateFactory::FindBarStateFactory()
- : ProfileKeyedServiceFactory("FindBarState",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "FindBarState",
+ BrowserContextDependencyManager::GetInstance()) {
}
FindBarStateFactory::~FindBarStateFactory() {}
-ProfileKeyedService* FindBarStateFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* FindBarStateFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new FindBarState;
}

Powered by Google App Engine
This is Rietveld 408576698