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

Side by Side Diff: components/policy/core/browser/cloud/message_util.cc

Issue 216923002: Revert "Add error message for domain mismatch on re-enrollment." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/policy/core/browser/cloud/message_util.h" 5 #include "components/policy/core/browser/cloud/message_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "grit/component_strings.h" 8 #include "grit/component_strings.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 10
(...skipping 24 matching lines...) Expand all
35 case DM_STATUS_SERVICE_ACTIVATION_PENDING: 35 case DM_STATUS_SERVICE_ACTIVATION_PENDING:
36 return IDS_POLICY_DM_STATUS_SERVICE_ACTIVATION_PENDING; 36 return IDS_POLICY_DM_STATUS_SERVICE_ACTIVATION_PENDING;
37 case DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER: 37 case DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER:
38 return IDS_POLICY_DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER; 38 return IDS_POLICY_DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER;
39 case DM_STATUS_SERVICE_DEVICE_ID_CONFLICT: 39 case DM_STATUS_SERVICE_DEVICE_ID_CONFLICT:
40 return IDS_POLICY_DM_STATUS_SERVICE_DEVICE_ID_CONFLICT; 40 return IDS_POLICY_DM_STATUS_SERVICE_DEVICE_ID_CONFLICT;
41 case DM_STATUS_SERVICE_MISSING_LICENSES: 41 case DM_STATUS_SERVICE_MISSING_LICENSES:
42 return IDS_POLICY_DM_STATUS_SERVICE_MISSING_LICENSES; 42 return IDS_POLICY_DM_STATUS_SERVICE_MISSING_LICENSES;
43 case DM_STATUS_SERVICE_DEPROVISIONED: 43 case DM_STATUS_SERVICE_DEPROVISIONED:
44 return IDS_POLICY_DM_STATUS_SERVICE_DEPROVISIONED; 44 return IDS_POLICY_DM_STATUS_SERVICE_DEPROVISIONED;
45 case DM_STATUS_SERVICE_DOMAIN_MISMATCH:
46 return IDS_POLICY_DM_STATUS_SERVICE_DOMAIN_MISMATCH;
47 case DM_STATUS_SERVICE_POLICY_NOT_FOUND: 45 case DM_STATUS_SERVICE_POLICY_NOT_FOUND:
48 return IDS_POLICY_DM_STATUS_SERVICE_POLICY_NOT_FOUND; 46 return IDS_POLICY_DM_STATUS_SERVICE_POLICY_NOT_FOUND;
49 } 47 }
50 NOTREACHED() << "Unhandled DM status " << status; 48 NOTREACHED() << "Unhandled DM status " << status;
51 return IDS_POLICY_DM_STATUS_UNKNOWN_ERROR; 49 return IDS_POLICY_DM_STATUS_UNKNOWN_ERROR;
52 } 50 }
53 51
54 int GetIDSForValidationStatus(CloudPolicyValidatorBase::Status status) { 52 int GetIDSForValidationStatus(CloudPolicyValidatorBase::Status status) {
55 switch (status) { 53 switch (status) {
56 case CloudPolicyValidatorBase::VALIDATION_OK: 54 case CloudPolicyValidatorBase::VALIDATION_OK:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return l10n_util::GetStringFUTF16( 123 return l10n_util::GetStringFUTF16(
126 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR, 124 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR,
127 l10n_util::GetStringUTF16( 125 l10n_util::GetStringUTF16(
128 GetIDSForValidationStatus(validation_status))); 126 GetIDSForValidationStatus(validation_status)));
129 } 127 }
130 128
131 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status)); 129 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status));
132 } 130 }
133 131
134 } // namespace policy 132 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698