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

Unified Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 4011001: Convert LOG(INFO) to VLOG(1) - chrome/browser/chromeos/login/.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/mock_authenticator.h
===================================================================
--- chrome/browser/chromeos/login/mock_authenticator.h (revision 63306)
+++ chrome/browser/chromeos/login/mock_authenticator.h (working copy)
@@ -37,25 +37,18 @@
const std::string& password,
const std::string& login_token,
const std::string& login_captcha) {
- if (expected_username_ == username &&
- expected_password_ == password) {
- BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this,
- &MockAuthenticator::OnLoginSuccess,
- GaiaAuthConsumer::ClientLoginResult(),
- false));
+ if (expected_username_ == username && expected_password_ == password) {
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
+ NewRunnableMethod(this, &MockAuthenticator::OnLoginSuccess,
+ GaiaAuthConsumer::ClientLoginResult(), false));
return true;
- } else {
- GoogleServiceAuthError error(
- GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS);
- BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this,
- &MockAuthenticator::OnLoginFailure,
- LoginFailure::FromNetworkAuthFailure(error)));
- return false;
}
+ GoogleServiceAuthError error(
+ GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS);
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
+ NewRunnableMethod(this, &MockAuthenticator::OnLoginFailure,
+ LoginFailure::FromNetworkAuthFailure(error)));
+ return false;
}
virtual bool AuthenticateToUnlock(const std::string& username,
@@ -79,7 +72,7 @@
void OnLoginFailure(const LoginFailure& failure) {
consumer_->OnLoginFailure(failure);
- LOG(INFO) << "Posting a QuitTask to UI thread";
+ VLOG(1) << "Posting a QuitTask to UI thread";
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask);
}
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698