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/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "grit/components_strings.h" | 14 #include "components/strings/grit/components_strings.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 class PolicyErrorMap::PendingError { | 20 class PolicyErrorMap::PendingError { |
21 public: | 21 public: |
22 explicit PendingError(const std::string& policy_name) | 22 explicit PendingError(const std::string& policy_name) |
23 : policy_name_(policy_name) {} | 23 : policy_name_(policy_name) {} |
24 virtual ~PendingError() {} | 24 virtual ~PendingError() {} |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 void PolicyErrorMap::CheckReadyAndConvert() { | 238 void PolicyErrorMap::CheckReadyAndConvert() { |
239 DCHECK(IsReady()); | 239 DCHECK(IsReady()); |
240 for (size_t i = 0; i < pending_.size(); ++i) { | 240 for (size_t i = 0; i < pending_.size(); ++i) { |
241 Convert(pending_[i].get()); | 241 Convert(pending_[i].get()); |
242 } | 242 } |
243 pending_.clear(); | 243 pending_.clear(); |
244 } | 244 } |
245 | 245 |
246 } // namespace policy | 246 } // namespace policy |
OLD | NEW |