OLD | NEW |
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/components_strings.h" | 8 #include "components/strings/grit/components_strings.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 | 10 |
11 namespace policy { | 11 namespace policy { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 int GetIDSForDMStatus(DeviceManagementStatus status) { | 15 int GetIDSForDMStatus(DeviceManagementStatus status) { |
16 switch (status) { | 16 switch (status) { |
17 case DM_STATUS_SUCCESS: | 17 case DM_STATUS_SUCCESS: |
18 return IDS_POLICY_DM_STATUS_SUCCESS; | 18 return IDS_POLICY_DM_STATUS_SUCCESS; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return l10n_util::GetStringFUTF16( | 132 return l10n_util::GetStringFUTF16( |
133 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR, | 133 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR, |
134 l10n_util::GetStringUTF16( | 134 l10n_util::GetStringUTF16( |
135 GetIDSForValidationStatus(validation_status))); | 135 GetIDSForValidationStatus(validation_status))); |
136 } | 136 } |
137 | 137 |
138 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status)); | 138 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status)); |
139 } | 139 } |
140 | 140 |
141 } // namespace policy | 141 } // namespace policy |
OLD | NEW |