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

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

Issue 5671003: [Chrome OS] Plumb new error codes from SignedSettings to consumers of the API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove untoward log statement Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/login_performer.h" 5 #include "chrome/browser/chromeos/login/login_performer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); 149 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS));
150 password_changed_ = true; 150 password_changed_ = true;
151 DVLOG(1) << "Password change detected - locking screen."; 151 DVLOG(1) << "Password change detected - locking screen.";
152 RequestScreenLock(); 152 RequestScreenLock();
153 } 153 }
154 } 154 }
155 155
156 //////////////////////////////////////////////////////////////////////////////// 156 ////////////////////////////////////////////////////////////////////////////////
157 // LoginPerformer, SignedSettingsHelper::Callback implementation: 157 // LoginPerformer, SignedSettingsHelper::Callback implementation:
158 158
159 void LoginPerformer::OnCheckWhiteListCompleted(bool success, 159 void LoginPerformer::OnCheckWhitelistCompleted(SignedSettings::ReturnCode code,
160 const std::string& email) { 160 const std::string& email) {
161 if (success) { 161 if (code == SignedSettings::SUCCESS) {
162 // Whitelist check passed, continue with authentication. 162 // Whitelist check passed, continue with authentication.
163 StartAuthentication(); 163 StartAuthentication();
164 } else { 164 } else {
165 if (delegate_) 165 if (delegate_)
166 delegate_->WhiteListCheckFailed(email); 166 delegate_->WhiteListCheckFailed(email);
167 else 167 else
168 NOTREACHED(); 168 NOTREACHED();
169 } 169 }
170 } 170 }
171 171
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 profile, 428 profile,
429 username_, 429 username_,
430 password_, 430 password_,
431 captcha_token_, 431 captcha_token_,
432 captcha_)); 432 captcha_));
433 } 433 }
434 password_.clear(); 434 password_.clear();
435 } 435 }
436 436
437 } // namespace chromeos 437 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.h ('k') | chrome/browser/chromeos/login/signed_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698