Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
index 6213313782a47137047ddebc329367a418d219d7..e4af08c49c70360d259753834151dc6a22d11463 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -246,7 +246,7 @@ bool BluetoothGetAdapterStateFunction::DoWork( |
bool BluetoothGetDevicesFunction::DoWork( |
scoped_refptr<BluetoothAdapter> adapter) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
base::ListValue* device_list = new base::ListValue; |
SetResult(device_list); |
@@ -271,7 +271,7 @@ bool BluetoothGetDevicesFunction::DoWork( |
bool BluetoothGetDeviceFunction::DoWork( |
scoped_refptr<BluetoothAdapter> adapter) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
scoped_ptr<GetDevice::Params> params(GetDevice::Params::Create(*args_)); |
EXTENSION_FUNCTION_VALIDATE(params.get() != NULL); |
@@ -363,7 +363,7 @@ bool BluetoothReadFunction::Prepare() { |
} |
void BluetoothReadFunction::Work() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
if (!socket_.get()) |
return; |
@@ -415,7 +415,7 @@ bool BluetoothWriteFunction::Prepare() { |
} |
void BluetoothWriteFunction::Work() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
if (socket_.get() == NULL) |
return; |