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

Unified Diff: chrome/browser/chrome_to_mobile_service_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/chrome_to_mobile_service_factory.cc
diff --git a/chrome/browser/chrome_to_mobile_service_factory.cc b/chrome/browser/chrome_to_mobile_service_factory.cc
index a467ca28330bd5ed67020fa1bf0664417ed4980e..3c1150a142c5f6a7d1fc6e5bec5f062128039480 100644
--- a/chrome/browser/chrome_to_mobile_service_factory.cc
+++ b/chrome/browser/chrome_to_mobile_service_factory.cc
@@ -19,10 +19,11 @@ ChromeToMobileServiceFactory* ChromeToMobileServiceFactory::GetInstance() {
ChromeToMobileService* ChromeToMobileServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<ChromeToMobileService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
-ProfileKeyedService* ChromeToMobileServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+ChromeToMobileServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
// Ensure that the service is not instantiated or used if it is disabled.
if (!ChromeToMobileService::IsChromeToMobileEnabled())
@@ -32,8 +33,9 @@ ProfileKeyedService* ChromeToMobileServiceFactory::BuildServiceInstanceFor(
}
ChromeToMobileServiceFactory::ChromeToMobileServiceFactory()
- : ProfileKeyedServiceFactory("ChromeToMobileService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ChromeToMobileService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ProfileSyncServiceFactory::GetInstance());
DependsOn(TokenServiceFactory::GetInstance());
// TODO(msw): Uncomment this once it exists.

Powered by Google App Engine
This is Rietveld 408576698