OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" | 5 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 381 |
382 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: | 382 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: |
383 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() {} | 383 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() {} |
384 | 384 |
385 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: | 385 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: |
386 ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() {} | 386 ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() {} |
387 | 387 |
388 void EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: | 388 void EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: |
389 ConnectToService(device::BluetoothDevice* device, | 389 ConnectToService(device::BluetoothDevice* device, |
390 const device::BluetoothUUID& uuid) { | 390 const device::BluetoothUUID& uuid) { |
391 proximity_auth::bluetooth_util::ConnectToServiceInsecurely( | 391 device->ConnectToServiceInsecurely( |
392 device, | |
393 uuid, | 392 uuid, |
394 base::Bind(&EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: | 393 base::Bind(&EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: |
395 OnConnect, | 394 OnConnect, |
396 this), | 395 this), |
397 base::Bind(&EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: | 396 base::Bind(&EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction:: |
398 OnConnectError, | 397 OnConnectError, |
399 this)); | 398 this)); |
400 } | 399 } |
401 | 400 |
402 EasyUnlockPrivateUpdateScreenlockStateFunction:: | 401 EasyUnlockPrivateUpdateScreenlockStateFunction:: |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 users[0]->logged_in = service->GetType() == EasyUnlockService::TYPE_REGULAR; | 572 users[0]->logged_in = service->GetType() == EasyUnlockService::TYPE_REGULAR; |
574 users[0]->data_ready = users[0]->logged_in || | 573 users[0]->data_ready = users[0]->logged_in || |
575 service->GetRemoteDevices() != NULL; | 574 service->GetRemoteDevices() != NULL; |
576 } | 575 } |
577 results_ = easy_unlock_private::GetUserInfo::Results::Create(users); | 576 results_ = easy_unlock_private::GetUserInfo::Results::Create(users); |
578 return true; | 577 return true; |
579 } | 578 } |
580 | 579 |
581 } // namespace api | 580 } // namespace api |
582 } // namespace extensions | 581 } // namespace extensions |
OLD | NEW |