Index: chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc |
index 2a07f5cedd32ca5c6a77e9cf7999123aff3d8add..c57ef5d314a0bb2d6f02912505ccf57908f30fee 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc |
@@ -6,6 +6,7 @@ |
#include "chrome/browser/extensions/api/bluetooth/bluetooth_api.h" |
#include "chrome/browser/extensions/extension_system_factory.h" |
+#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_dependency_manager.h" |
namespace extensions { |
@@ -31,8 +32,8 @@ BluetoothAPIFactory::~BluetoothAPIFactory() { |
} |
ProfileKeyedService* BluetoothAPIFactory::BuildServiceInstanceFor( |
- Profile* profile) const { |
- return new BluetoothAPI(profile); |
+ content::BrowserContext* profile) const { |
+ return new BluetoothAPI(static_cast<Profile*>(profile)); |
} |
bool BluetoothAPIFactory::ServiceRedirectedInIncognito() const { |