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 "components/proximity_auth/proximity_auth_system.h" | 5 #include "components/proximity_auth/proximity_auth_system.h" |
6 | 6 |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 #include "components/proximity_auth/logging/logging.h" | 8 #include "components/proximity_auth/logging/logging.h" |
9 #include "components/proximity_auth/proximity_auth_client.h" | 9 #include "components/proximity_auth/proximity_auth_client.h" |
10 #include "components/proximity_auth/remote_device_life_cycle_impl.h" | 10 #include "components/proximity_auth/remote_device_life_cycle_impl.h" |
11 #include "components/proximity_auth/unlock_manager.h" | 11 #include "components/proximity_auth/unlock_manager.h" |
12 | 12 |
13 namespace proximity_auth { | 13 namespace proximity_auth { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // The time to wait after the device wakes up before beginning to connect to the | 17 // The time to wait after the device wakes up before beginning to connect to the |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 << account_id.Serialize(); | 159 << account_id.Serialize(); |
160 remote_device_life_cycle_.reset( | 160 remote_device_life_cycle_.reset( |
161 new RemoteDeviceLifeCycleImpl(remote_device, proximity_auth_client_)); | 161 new RemoteDeviceLifeCycleImpl(remote_device, proximity_auth_client_)); |
162 unlock_manager_->SetRemoteDeviceLifeCycle(remote_device_life_cycle_.get()); | 162 unlock_manager_->SetRemoteDeviceLifeCycle(remote_device_life_cycle_.get()); |
163 remote_device_life_cycle_->AddObserver(this); | 163 remote_device_life_cycle_->AddObserver(this); |
164 remote_device_life_cycle_->Start(); | 164 remote_device_life_cycle_->Start(); |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 } // proximity_auth | 168 } // proximity_auth |
OLD | NEW |