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

Unified Diff: chrome/browser/chromeos/policy/wildcard_login_checker.h

Issue 214463007: Merge 253627 "Properly handle failure modes in the wildcard logi..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 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
Index: chrome/browser/chromeos/policy/wildcard_login_checker.h
===================================================================
--- chrome/browser/chromeos/policy/wildcard_login_checker.h (revision 259991)
+++ chrome/browser/chromeos/policy/wildcard_login_checker.h (working copy)
@@ -25,8 +25,15 @@
// reports the result via a callback.
class WildcardLoginChecker : public UserInfoFetcher::Delegate {
public:
- typedef base::Callback<void(bool)> StatusCallback;
+ // Indicates result of the wildcard login check.
+ enum Result {
+ RESULT_ALLOWED, // Wildcard check succeeded, login allowed.
+ RESULT_BLOCKED, // Check completed, but user should be blocked.
+ RESULT_FAILED, // Failure due to network errors etc.
+ };
+ typedef base::Callback<void(Result)> StatusCallback;
+
WildcardLoginChecker();
virtual ~WildcardLoginChecker();
@@ -53,7 +60,7 @@
void StartUserInfoFetcher(const std::string& access_token);
// Handles the response of the check and calls ReportResult().
- void OnCheckCompleted(bool result);
+ void OnCheckCompleted(Result result);
StatusCallback callback_;

Powered by Google App Engine
This is Rietveld 408576698