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() |