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

Side by Side Diff: components/pairing/bluetooth_host_pairing_controller.cc

Issue 2014933002: Move DeviceMonitorLinux to //device/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment for boolean parameter. Created 4 years, 6 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 | device/core/BUILD.gn » ('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 "components/pairing/bluetooth_host_pairing_controller.h" 5 #include "components/pairing/bluetooth_host_pairing_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/hash.h" 8 #include "base/hash.h"
9 #include "base/location.h"
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
11 #include "base/task_runner_util.h" 12 #include "base/task_runner_util.h"
12 #include "chromeos/system/devicetype.h" 13 #include "chromeos/system/devicetype.h"
13 #include "components/pairing/bluetooth_pairing_constants.h" 14 #include "components/pairing/bluetooth_pairing_constants.h"
14 #include "components/pairing/pairing_api.pb.h" 15 #include "components/pairing/pairing_api.pb.h"
15 #include "components/pairing/proto_decoder.h" 16 #include "components/pairing/proto_decoder.h"
16 #include "device/bluetooth/bluetooth_adapter_factory.h" 17 #include "device/bluetooth/bluetooth_adapter_factory.h"
17 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
18 19
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 ChangeStage(STAGE_WAITING_FOR_CODE_CONFIRMATION); 537 ChangeStage(STAGE_WAITING_FOR_CODE_CONFIRMATION);
537 } 538 }
538 539
539 void BluetoothHostPairingController::AuthorizePairing( 540 void BluetoothHostPairingController::AuthorizePairing(
540 device::BluetoothDevice* device) { 541 device::BluetoothDevice* device) {
541 // Disallow unknown device. 542 // Disallow unknown device.
542 device->RejectPairing(); 543 device->RejectPairing();
543 } 544 }
544 545
545 } // namespace pairing_chromeos 546 } // namespace pairing_chromeos
OLDNEW
« no previous file with comments | « no previous file | device/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698