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

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

Issue 10664017: Introduce a new error code from the DM server - 402 - missing licenses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/serials/licenses// Created 8 years, 6 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/cloud_policy_controller.cc
diff --git a/chrome/browser/policy/cloud_policy_controller.cc b/chrome/browser/policy/cloud_policy_controller.cc
index 95d71fe67f6357af7324cccaab13616fd0d41e2d..e4881001eb7590e97ddee218593f16e2b49e9694 100644
--- a/chrome/browser/policy/cloud_policy_controller.cc
+++ b/chrome/browser/policy/cloud_policy_controller.cc
@@ -95,6 +95,7 @@ void SampleErrorStatus(DeviceManagementStatus status) {
case DM_STATUS_TEMPORARY_UNAVAILABLE:
case DM_STATUS_SERVICE_ACTIVATION_PENDING:
case DM_STATUS_HTTP_STATUS_ERROR:
+ case DM_STATUS_MISSING_LICENSES:
sample = kMetricPolicyFetchServerFailed;
break;
}
@@ -218,6 +219,11 @@ void CloudPolicyController::OnPolicyFetchCompleted(
token_fetcher_->SetSerialNumberInvalidState();
SetState(STATE_TOKEN_ERROR);
return;
+ case DM_STATUS_MISSING_LICENSES:
+ VLOG(1) << "There are no valid licenses for this domain left.";
+ token_fetcher_->SetMissingLicensesState();
+ SetState(STATE_TOKEN_UNMANAGED);
+ return;
case DM_STATUS_SERVICE_MANAGEMENT_NOT_SUPPORTED:
VLOG(1) << "The device is no longer managed.";
token_fetcher_->SetUnmanagedState();
« no previous file with comments | « chrome/browser/policy/cloud_policy_constants.h ('k') | chrome/browser/policy/cloud_policy_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698