Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/chromeos/login/auth/online_attempt_host.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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_attempt_state.h" 9 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h"
10 #include "chrome/browser/chromeos/login/online_attempt.h" 10 #include "chrome/browser/chromeos/login/auth/online_attempt.h"
11 #include "chrome/browser/chromeos/login/user.h" 11 #include "chrome/browser/chromeos/login/users/user.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "google_apis/gaia/gaia_auth_util.h" 14 #include "google_apis/gaia/gaia_auth_util.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate) 18 OnlineAttemptHost::OnlineAttemptHost(Delegate* delegate)
19 : delegate_(delegate), weak_ptr_factory_(this) {} 19 : delegate_(delegate), weak_ptr_factory_(this) {}
20 20
21 OnlineAttemptHost::~OnlineAttemptHost() { 21 OnlineAttemptHost::~OnlineAttemptHost() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 } 68 }
69 69
70 void OnlineAttemptHost::ResolveOnUIThread(bool success) { 70 void OnlineAttemptHost::ResolveOnUIThread(bool success) {
71 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 71 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
72 delegate_->OnChecked(current_username_, success); 72 delegate_->OnChecked(current_username_, success);
73 Reset(); 73 Reset();
74 } 74 }
75 75
76 } // namespace chromeos 76 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698