| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/policy_error_map.h" | 5 #include "components/policy/core/browser/policy_error_map.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 12 #include "grit/components_strings.h" | 13 #include "grit/components_strings.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 15 | 16 |
| 16 namespace policy { | 17 namespace policy { |
| 17 | 18 |
| 18 class PolicyErrorMap::PendingError { | 19 class PolicyErrorMap::PendingError { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 230 |
| 230 void PolicyErrorMap::CheckReadyAndConvert() { | 231 void PolicyErrorMap::CheckReadyAndConvert() { |
| 231 DCHECK(IsReady()); | 232 DCHECK(IsReady()); |
| 232 for (size_t i = 0; i < pending_.size(); ++i) { | 233 for (size_t i = 0; i < pending_.size(); ++i) { |
| 233 Convert(pending_[i]); | 234 Convert(pending_[i]); |
| 234 } | 235 } |
| 235 pending_.clear(); | 236 pending_.clear(); |
| 236 } | 237 } |
| 237 | 238 |
| 238 } // namespace policy | 239 } // namespace policy |
| OLD | NEW |