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 "chrome/browser/chromeos/login/online_attempt_host.h" | 5 #include "chrome/browser/chromeos/login/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_attempt_state.h" | 9 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
10 #include "chrome/browser/chromeos/login/online_attempt.h" | 10 #include "chrome/browser/chromeos/login/online_attempt.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/net/gaia/gaia_auth_util.h" | |
13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "google_apis/gaia/gaia_auth_util.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) | 17 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) |
18 : delegate_(delegate) { | 18 : delegate_(delegate) { |
19 } | 19 } |
20 | 20 |
21 OnlineAttemptHost::~OnlineAttemptHost() { | 21 OnlineAttemptHost::~OnlineAttemptHost() { |
22 Reset(); | 22 Reset(); |
23 } | 23 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 void OnlineAttemptHost::ResolveOnUIThread(bool success) { | 68 void OnlineAttemptHost::ResolveOnUIThread(bool success) { |
69 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 69 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
70 delegate_->OnChecked(current_username_, success); | 70 delegate_->OnChecked(current_username_, success); |
71 Reset(); | 71 Reset(); |
72 } | 72 } |
73 | 73 |
74 } // chromeos | 74 } // chromeos |
OLD | NEW |