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

Unified Diff: chrome/browser/policy/policy_notifier.cc

Issue 9403010: Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made registration fail on missing enrollment type. 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/policy/policy_notifier.cc
diff --git a/chrome/browser/policy/policy_notifier.cc b/chrome/browser/policy/policy_notifier.cc
index a57c27c54f39537aae0ddf6a56941b6672d6db79..b15a74dfea1b3f0f9898e375ced1a7b132fd4c22 100644
--- a/chrome/browser/policy/policy_notifier.cc
+++ b/chrome/browser/policy/policy_notifier.cc
@@ -49,7 +49,8 @@ void PolicyNotifier::RecomputeState() {
state_ = CloudPolicySubsystem::UNMANAGED;
error_details_ = CloudPolicySubsystem::NO_DETAILS;
} else if (s[TOKEN_FETCHER] == CloudPolicySubsystem::UNENROLLED &&
- e[TOKEN_FETCHER] == CloudPolicySubsystem::BAD_SERIAL_NUMBER) {
+ (e[TOKEN_FETCHER] == CloudPolicySubsystem::BAD_SERIAL_NUMBER ||
+ e[TOKEN_FETCHER] == CloudPolicySubsystem::BAD_ENROLLMENT_MODE)) {
state_ = s[TOKEN_FETCHER];
error_details_ = e[TOKEN_FETCHER];
} else if (s[TOKEN_FETCHER] == CloudPolicySubsystem::NETWORK_ERROR) {

Powered by Google App Engine
This is Rietveld 408576698