| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_POLICY_MESSAGE_UTIL_H_ | |
| 6 #define CHROME_BROWSER_POLICY_MESSAGE_UTIL_H_ | |
| 7 | |
| 8 #include "base/string16.h" | |
| 9 #include "chrome/browser/policy/cloud_policy_constants.h" | |
| 10 #include "chrome/browser/policy/cloud_policy_store.h" | |
| 11 #include "chrome/browser/policy/cloud_policy_validator.h" | |
| 12 | |
| 13 namespace policy { | |
| 14 | |
| 15 // Returns a string describing |status| suitable for display in UI. | |
| 16 string16 FormatDeviceManagementStatus(DeviceManagementStatus status); | |
| 17 | |
| 18 // Returns a string describing |validation_status| suitable for display in UI. | |
| 19 string16 FormatValidationStatus( | |
| 20 CloudPolicyValidatorBase::Status validation_status); | |
| 21 | |
| 22 // Returns a textual description of |store_status| for display in the UI. If | |
| 23 // |store_status| is STATUS_VALIDATION_FAILED, |validation_status| will be | |
| 24 // consulted to create a description of the validation failure. | |
| 25 string16 FormatStoreStatus(CloudPolicyStore::Status store_status, | |
| 26 CloudPolicyValidatorBase::Status validation_status); | |
| 27 | |
| 28 } // namespace policy | |
| 29 | |
| 30 #endif // CHROME_BROWSER_POLICY_MESSAGE_UTIL_H_ | |
| OLD | NEW |