OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proximity_auth/unlock_manager.h" | 5 #include "components/proximity_auth/unlock_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "base/time/default_tick_clock.h" | 11 #include "base/time/default_tick_clock.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" |
13 #include "components/proximity_auth/logging/logging.h" | 14 #include "components/proximity_auth/logging/logging.h" |
14 #include "components/proximity_auth/messenger.h" | 15 #include "components/proximity_auth/messenger.h" |
15 #include "components/proximity_auth/metrics.h" | 16 #include "components/proximity_auth/metrics.h" |
16 #include "components/proximity_auth/proximity_auth_client.h" | 17 #include "components/proximity_auth/proximity_auth_client.h" |
17 #include "components/proximity_auth/proximity_monitor_impl.h" | 18 #include "components/proximity_auth/proximity_monitor_impl.h" |
18 #include "components/proximity_auth/remote_device.h" | 19 #include "components/proximity_auth/remote_device.h" |
19 #include "components/proximity_auth/secure_context.h" | 20 #include "components/proximity_auth/secure_context.h" |
20 #include "device/bluetooth/bluetooth_adapter_factory.h" | 21 #include "device/bluetooth/bluetooth_adapter_factory.h" |
21 | 22 |
22 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 | 493 |
493 Messenger* UnlockManager::GetMessenger() { | 494 Messenger* UnlockManager::GetMessenger() { |
494 // TODO(tengs): We should use a weak pointer to hold the Messenger instance | 495 // TODO(tengs): We should use a weak pointer to hold the Messenger instance |
495 // instead. | 496 // instead. |
496 if (!life_cycle_) | 497 if (!life_cycle_) |
497 return nullptr; | 498 return nullptr; |
498 return life_cycle_->GetMessenger(); | 499 return life_cycle_->GetMessenger(); |
499 } | 500 } |
500 | 501 |
501 } // namespace proximity_auth | 502 } // namespace proximity_auth |
OLD | NEW |