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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc

Issue 652403002: [Clean up] Expose ConnectToServiceInsecurely as a BluetoothDevice API on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Restore deps rather than public_deps Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/proximity_auth/bluetooth_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/proximity_auth/bluetooth_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698