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

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

Issue 9466005: Make sure the device recovers from policy loss in the consumer case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT and cleaned up comments and unrelated changes. Created 8 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/login/login_status_consumer.h
diff --git a/chrome/browser/chromeos/login/login_status_consumer.h b/chrome/browser/chromeos/login/login_status_consumer.h
index 83805e1d520cded21a2114f18fd0b6f899662eb5..dc365358020bc9175edf97f9ecd37f14d72d1a05 100644
--- a/chrome/browser/chromeos/login/login_status_consumer.h
+++ b/chrome/browser/chromeos/login/login_status_consumer.h
@@ -29,6 +29,7 @@ class LoginFailure {
LOGIN_TIMED_OUT,
UNLOCK_FAILED,
NETWORK_AUTH_FAILED, // Could not authenticate against Google
+ OWNER_REQUIRED, // Only the device owner can log-in.
NUM_FAILURE_REASONS, // This has to be the last item.
};
@@ -76,6 +77,8 @@ class LoginFailure {
return net::ErrorToString(error_.network_error());
}
return "Google authentication failed.";
+ case OWNER_REQUIRED:
+ return "Login is restricted to the owner's account only.";
default:
NOTREACHED();
return std::string();

Powered by Google App Engine
This is Rietveld 408576698