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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

Issue 1284073002: bluetooth: Add adapter to BluetoothDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-drop-callback-
Patch Set: Merge TOT Created 5 years, 3 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: 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();

Powered by Google App Engine
This is Rietveld 408576698