Index: device/bluetooth/bluetooth_profile.cc |
diff --git a/device/bluetooth/bluetooth_profile.cc b/device/bluetooth/bluetooth_profile.cc |
index bf70ab82e6465f2c51a1bd7bc7fbd76309e8d1eb..61394f14b0b206242a11fe10afe047b2bfc8b913 100644 |
--- a/device/bluetooth/bluetooth_profile.cc |
+++ b/device/bluetooth/bluetooth_profile.cc |
@@ -54,9 +54,9 @@ void BluetoothProfile::Register(const BluetoothUUID& uuid, |
profile = new BluetoothProfileMac(uuid, options.name); |
callback.Run(profile); |
#elif defined(OS_WIN) |
- BluetoothProfile* profile = NULL; |
- profile = new BluetoothProfileWin(uuid, options.name); |
- callback.Run(profile); |
+ BluetoothProfileWin* profile = NULL; |
+ profile = new BluetoothProfileWin(); |
+ profile->Init(uuid, options, callback); |
#else |
callback.Run(NULL); |
#endif |