| 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 "chrome/browser/chromeos/login/auth/online_attempt_host.h" | 5 #include "chrome/browser/chromeos/login/auth/online_attempt_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
| 9 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h" | 9 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h" |
| 10 #include "chrome/browser/chromeos/login/auth/online_attempt.h" | 10 #include "chrome/browser/chromeos/login/auth/online_attempt.h" |
| 11 #include "chrome/browser/chromeos/login/auth/user_context.h" |
| 11 #include "chrome/browser/chromeos/login/users/user.h" | 12 #include "chrome/browser/chromeos/login/users/user.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 14 | 15 |
| 15 namespace chromeos { | 16 namespace chromeos { |
| 16 | 17 |
| 17 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) | 18 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) |
| 18 : delegate_(delegate), weak_ptr_factory_(this) {} | 19 : delegate_(delegate), weak_ptr_factory_(this) {} |
| 19 | 20 |
| 20 OnlineAttemptHost::~OnlineAttemptHost() { | 21 OnlineAttemptHost::~OnlineAttemptHost() { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 62 } |
| 62 } | 63 } |
| 63 | 64 |
| 64 void OnlineAttemptHost::ResolveOnUIThread(bool success) { | 65 void OnlineAttemptHost::ResolveOnUIThread(bool success) { |
| 65 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 66 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| 66 delegate_->OnChecked(current_username_, success); | 67 delegate_->OnChecked(current_username_, success); |
| 67 Reset(); | 68 Reset(); |
| 68 } | 69 } |
| 69 | 70 |
| 70 } // namespace chromeos | 71 } // namespace chromeos |
| OLD | NEW |