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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for storage_api Created 6 years, 10 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_event_router.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h b/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h
index eb23825eb52b48897b7f4e96e905255895a701ef..d6361adc3963c2d7650a45b6184117c2ff6439cc 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h
@@ -17,7 +17,9 @@
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/bluetooth_socket.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace device {
@@ -36,7 +38,7 @@ class ExtensionBluetoothEventRouter
: public device::BluetoothAdapter::Observer,
public content::NotificationObserver {
public:
- explicit ExtensionBluetoothEventRouter(Profile* profile);
+ explicit ExtensionBluetoothEventRouter(content::BrowserContext* context);
virtual ~ExtensionBluetoothEventRouter();
// Returns true if adapter_ has been initialized for testing or bluetooth
@@ -135,7 +137,7 @@ class ExtensionBluetoothEventRouter
bool send_discovery_events_;
bool responsible_for_discovery_;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
scoped_refptr<device::BluetoothAdapter> adapter_;
int num_event_listeners_;

Powered by Google App Engine
This is Rietveld 408576698