OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/host/setup/host_starter.h" | 5 #include "remoting/host/setup/host_starter.h" |
6 | 6 |
| 7 #include "base/bind.h" |
7 #include "base/guid.h" | 8 #include "base/guid.h" |
| 9 #include "base/location.h" |
8 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
9 #include "base/values.h" | 11 #include "base/values.h" |
10 #include "google_apis/google_api_keys.h" | 12 #include "google_apis/google_api_keys.h" |
11 #include "remoting/host/pin_hash.h" | 13 #include "remoting/host/pin_hash.h" |
12 #include "remoting/host/setup/oauth_helper.h" | 14 #include "remoting/host/setup/oauth_helper.h" |
13 | 15 |
14 namespace { | 16 namespace { |
15 const int kMaxGetTokensRetries = 3; | 17 const int kMaxGetTokensRetries = 3; |
16 } // namespace | 18 } // namespace |
17 | 19 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 main_task_runner_->PostTask(FROM_HERE, base::Bind( | 227 main_task_runner_->PostTask(FROM_HERE, base::Bind( |
226 &HostStarter::OnHostUnregistered, weak_ptr_)); | 228 &HostStarter::OnHostUnregistered, weak_ptr_)); |
227 return; | 229 return; |
228 } | 230 } |
229 CompletionCallback cb = on_done_; | 231 CompletionCallback cb = on_done_; |
230 on_done_.Reset(); | 232 on_done_.Reset(); |
231 cb.Run(START_ERROR); | 233 cb.Run(START_ERROR); |
232 } | 234 } |
233 | 235 |
234 } // namespace remoting | 236 } // namespace remoting |
OLD | NEW |