Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
index 61fcc0ccdfd04a6be3b1c96a6838f2d295ba8ff2..cbc26aff1d2262f35f14a477fe66cbbff1214b45 100644 |
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc |
@@ -451,10 +451,10 @@ LayoutTestBluetoothAdapterProvider::GetConnectableDevice( |
BluetoothDevice* device_ptr = device.get(); |
ON_CALL(*device, CreateGattConnection(_, _)) |
- .WillByDefault( |
- RunCallbackWithResult<0 /* success_callback */>([device_ptr]() { |
- return make_scoped_ptr( |
- new NiceMockBluetoothGattConnection(device_ptr->GetAddress())); |
+ .WillByDefault(RunCallbackWithResult<0 /* success_callback */>( |
+ [adapter, device_ptr]() { |
+ return make_scoped_ptr(new NiceMockBluetoothGattConnection( |
+ adapter, device_ptr->GetAddress())); |
})); |
return device.Pass(); |