| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/bluetooth/bluetooth_profile.h" | 5 #include "device/bluetooth/bluetooth_profile.h" |
| 6 | 6 |
| 7 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
| 8 #include "device/bluetooth/bluetooth_profile_chromeos.h" | 8 #include "device/bluetooth/bluetooth_profile_chromeos.h" |
| 9 #elif defined(OS_MACOSX) | 9 #elif defined(OS_MACOSX) |
| 10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 chromeos::BluetoothProfileChromeOS* profile = NULL; | 51 chromeos::BluetoothProfileChromeOS* profile = NULL; |
| 52 profile = new chromeos::BluetoothProfileChromeOS(); | 52 profile = new chromeos::BluetoothProfileChromeOS(); |
| 53 profile->Init(uuid, options, callback); | 53 profile->Init(uuid, options, callback); |
| 54 #elif defined(OS_MACOSX) | 54 #elif defined(OS_MACOSX) |
| 55 BluetoothProfile* profile = NULL; | 55 BluetoothProfile* profile = NULL; |
| 56 | 56 |
| 57 if (base::mac::IsOSLionOrLater()) | 57 if (base::mac::IsOSLionOrLater()) |
| 58 profile = CreateBluetoothProfileMac(uuid, options); | 58 profile = CreateBluetoothProfileMac(uuid, options); |
| 59 callback.Run(profile); | 59 callback.Run(profile); |
| 60 #elif defined(OS_WIN) | 60 #elif defined(OS_WIN) |
| 61 BluetoothProfile* profile = NULL; | 61 BluetoothProfileWin* profile = NULL; |
| 62 profile = new BluetoothProfileWin(uuid, options.name); | 62 profile = new BluetoothProfileWin(); |
| 63 callback.Run(profile); | 63 profile->Init(uuid, options, callback); |
| 64 #else | 64 #else |
| 65 callback.Run(NULL); | 65 callback.Run(NULL); |
| 66 #endif | 66 #endif |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace device | 69 } // namespace device |
| OLD | NEW |