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 "chromeos/login/auth/online_attempt_host.h" | 5 #include "chromeos/login/auth/online_attempt_host.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/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "chromeos/login/auth/auth_attempt_state.h" | 10 #include "chromeos/login/auth/auth_attempt_state.h" |
11 #include "chromeos/login/auth/online_attempt.h" | 11 #include "chromeos/login/auth/online_attempt.h" |
12 #include "chromeos/login/auth/user_context.h" | |
13 #include "components/user_manager/user_type.h" | 12 #include "components/user_manager/user_type.h" |
14 | 13 |
15 namespace chromeos { | 14 namespace chromeos { |
16 | 15 |
17 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) | 16 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) |
18 : message_loop_(base::MessageLoopProxy::current()), | 17 : message_loop_(base::MessageLoopProxy::current()), |
19 delegate_(delegate), | 18 delegate_(delegate), |
20 weak_ptr_factory_(this) { | 19 weak_ptr_factory_(this) { |
21 } | 20 } |
22 | 21 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 success)); | 53 success)); |
55 } | 54 } |
56 } | 55 } |
57 | 56 |
58 void OnlineAttemptHost::ResolveOnUIThread(bool success) { | 57 void OnlineAttemptHost::ResolveOnUIThread(bool success) { |
59 delegate_->OnChecked(current_attempt_user_context_.GetUserID(), success); | 58 delegate_->OnChecked(current_attempt_user_context_.GetUserID(), success); |
60 Reset(); | 59 Reset(); |
61 } | 60 } |
62 | 61 |
63 } // namespace chromeos | 62 } // namespace chromeos |
OLD | NEW |