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

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: Un-broke the DeviceTokenFetcher unit tests. 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..ba2b4d8a9043f371dbea23e74a265b351c1bbe45 100644
--- a/chrome/browser/policy/policy_notifier.cc
+++ b/chrome/browser/policy/policy_notifier.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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