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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api_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/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 {

Powered by Google App Engine
This is Rietveld 408576698