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 "chrome/browser/policy/policy_error_map.h" | 5 #include "chrome/browser/policy/policy_error_map.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 | 15 |
16 namespace policy { | 16 namespace policy { |
17 | 17 |
18 struct PolicyErrorMap::PendingError { | 18 struct PolicyErrorMap::PendingError { |
19 PendingError(const std::string& policy, | 19 PendingError(const std::string& policy, |
20 const std::string& subkey, | 20 const std::string& subkey, |
21 int index, | 21 int index, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void PolicyErrorMap::CheckReadyAndConvert() { | 160 void PolicyErrorMap::CheckReadyAndConvert() { |
161 DCHECK(IsReady()); | 161 DCHECK(IsReady()); |
162 for (size_t i = 0; i < pending_.size(); ++i) { | 162 for (size_t i = 0; i < pending_.size(); ++i) { |
163 Convert(pending_[i]); | 163 Convert(pending_[i]); |
164 } | 164 } |
165 pending_.clear(); | 165 pending_.clear(); |
166 } | 166 } |
167 | 167 |
168 } // namespace policy | 168 } // namespace policy |
OLD | NEW |