OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/mock_authenticator.h" | 5 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 | 9 |
10 using content::BrowserThread; | 10 using content::BrowserThread; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 expected_password_, | 52 expected_password_, |
53 credentials, | 53 credentials, |
54 request_pending, | 54 request_pending, |
55 false); | 55 false); |
56 } | 56 } |
57 | 57 |
58 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) { | 58 void MockAuthenticator::OnLoginFailure(const LoginFailure& failure) { |
59 consumer_->OnLoginFailure(failure); | 59 consumer_->OnLoginFailure(failure); |
60 VLOG(1) << "Posting a QuitTask to UI thread"; | 60 VLOG(1) << "Posting a QuitTask to UI thread"; |
61 BrowserThread::PostTask( | 61 BrowserThread::PostTask( |
62 BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask); | 62 BrowserThread::UI, FROM_HERE, MessageLoop::QuitClosure()); |
63 } | 63 } |
64 | 64 |
65 //////////////////////////////////////////////////////////////////////////////// | 65 //////////////////////////////////////////////////////////////////////////////// |
66 // MockLoginUtils | 66 // MockLoginUtils |
67 | 67 |
68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, | 68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, |
69 const std::string& expected_password) | 69 const std::string& expected_password) |
70 : expected_username_(expected_username), | 70 : expected_username_(expected_username), |
71 expected_password_(expected_password) { | 71 expected_password_(expected_password) { |
72 } | 72 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, | 115 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, |
116 Profile* new_profile) { | 116 Profile* new_profile) { |
117 } | 117 } |
118 | 118 |
119 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, | 119 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, |
120 Profile* new_profile) { | 120 Profile* new_profile) { |
121 } | 121 } |
122 | 122 |
123 } // namespace chromeos | 123 } // namespace chromeos |
OLD | NEW |