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

Unified Diff: chrome/browser/chrome_to_mobile_service_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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 d2c660150e0e2b12b798d309a6fda35b2207b15f..413106d303f0d304354e1207ebda1128705bddb5 100644
--- a/chrome/browser/chrome_to_mobile_service_factory.cc
+++ b/chrome/browser/chrome_to_mobile_service_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chrome_to_mobile_service_factory.h"
#include "chrome/browser/chrome_to_mobile_service.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/signin/token_service_factory.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
@@ -22,12 +23,12 @@ ChromeToMobileService* ChromeToMobileServiceFactory::GetForProfile(
}
ProfileKeyedService* ChromeToMobileServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* profile) const {
// Ensure that the service is not instantiated or used if it is disabled.
if (!ChromeToMobileService::IsChromeToMobileEnabled())
return NULL;
- return new ChromeToMobileService(profile);
+ return new ChromeToMobileService(static_cast<Profile*>(profile));
}
ChromeToMobileServiceFactory::ChromeToMobileServiceFactory()
« no previous file with comments | « chrome/browser/chrome_to_mobile_service_factory.h ('k') | chrome/browser/chromeos/app_mode/kiosk_app_update_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698