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

Side by Side Diff: chrome/browser/chromeos/login/mock_authenticator.cc

Issue 8873032: Removing MessageLoop::QuitTask() from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert 3 more problematic files Created 9 years 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chromeos/login/online_attempt_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698