OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/policy/policy_status_info.h" | 5 #include "chrome/browser/policy/policy_status_info.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return ASCIIToUTF16(strings[source_type]); | 76 return ASCIIToUTF16(strings[source_type]); |
77 } | 77 } |
78 | 78 |
79 // static | 79 // static |
80 string16 PolicyStatusInfo::GetPolicyLevelString(PolicyLevel level) { | 80 string16 PolicyStatusInfo::GetPolicyLevelString(PolicyLevel level) { |
81 static const char* strings[] = { "mandatory", "recommended", "undefined" }; | 81 static const char* strings[] = { "mandatory", "recommended", "undefined" }; |
82 DCHECK(static_cast<size_t>(level) < arraysize(strings)); | 82 DCHECK(static_cast<size_t>(level) < arraysize(strings)); |
83 return ASCIIToUTF16(strings[level]); | 83 return ASCIIToUTF16(strings[level]); |
84 } | 84 } |
85 | 85 |
86 } // namespace policy | 86 } // namespace policy |
OLD | NEW |