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

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

Issue 6882038: Move writing information to the lockbox after registering with the DM server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed nits and rebase issues. Created 9 years, 8 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 9b993345ab80f386d5934c2e72a7b06843acd304..69de8f600d9da43728c1d3095a8507b87b7e322b 100644
--- a/chrome/browser/policy/policy_notifier.cc
+++ b/chrome/browser/policy/policy_notifier.cc
@@ -57,6 +57,12 @@ void PolicyNotifier::RecomputeState() {
} else if (s[POLICY_CONTROLLER] == CloudPolicySubsystem::NETWORK_ERROR) {
state_ = s[POLICY_CONTROLLER];
error_details_ = e[POLICY_CONTROLLER];
+ } else if (s[TOKEN_FETCHER] == CloudPolicySubsystem::SUCCESS &&
+ s[POLICY_CONTROLLER] != CloudPolicySubsystem::SUCCESS) {
+ // We need to be able to differentiate between token fetch success or
+ // policy fetch success.
+ state_ = CloudPolicySubsystem::TOKEN_FETCHED;
+ error_details_ = CloudPolicySubsystem::NO_DETAILS;
} else {
state_ = s[POLICY_CACHE];
error_details_ = e[POLICY_CACHE];

Powered by Google App Engine
This is Rietveld 408576698