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

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: Created 8 years, 10 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 1e32b6b0d03e533510604916a1d79d7363c60b7d..1f7f94770d62b6efd963ec1722900eccbeb7ac3c 100644
--- a/chrome/browser/chromeos/login/login_status_consumer.h
+++ b/chrome/browser/chromeos/login/login_status_consumer.h
@@ -26,6 +26,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.
};
@@ -73,6 +74,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