diff options
Diffstat (limited to 'extensions/browser/api/bluetooth/bluetooth_extension_function.cc')
-rw-r--r-- | extensions/browser/api/bluetooth/bluetooth_extension_function.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/browser/api/bluetooth/bluetooth_extension_function.cc b/extensions/browser/api/bluetooth/bluetooth_extension_function.cc index 7a5eefe..b51b647a 100644 --- a/extensions/browser/api/bluetooth/bluetooth_extension_function.cc +++ b/extensions/browser/api/bluetooth/bluetooth_extension_function.cc @@ -20,18 +20,18 @@ const char kPlatformNotSupported[] = extensions::BluetoothEventRouter* GetEventRouter( content::BrowserContext* context) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); return extensions::BluetoothAPI::Get(context)->event_router(); } bool IsBluetoothSupported(content::BrowserContext* context) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); return GetEventRouter(context)->IsBluetoothSupported(); } void GetAdapter(const device::BluetoothAdapterFactory::AdapterCallback callback, content::BrowserContext* context) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); GetEventRouter(context)->GetAdapter(callback); } @@ -47,7 +47,7 @@ BluetoothExtensionFunction::~BluetoothExtensionFunction() { } bool BluetoothExtensionFunction::RunAsync() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); if (!IsBluetoothSupported(browser_context())) { SetError(kPlatformNotSupported); @@ -61,7 +61,7 @@ bool BluetoothExtensionFunction::RunAsync() { void BluetoothExtensionFunction::RunOnAdapterReady( scoped_refptr<device::BluetoothAdapter> adapter) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DoWork(adapter); } |