OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/common/permissions/permission_message_util.h" | 5 #include "extensions/common/permissions/permission_message_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/macros.h" | 9 #include "base/macros.h" |
8 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "extensions/common/permissions/api_permission_set.h" | 12 #include "extensions/common/permissions/api_permission_set.h" |
11 #include "extensions/common/url_pattern_set.h" | 13 #include "extensions/common/url_pattern_set.h" |
12 #include "grit/extensions_strings.h" | 14 #include "grit/extensions_strings.h" |
13 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 15 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
14 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
15 #include "url/url_constants.h" | 17 #include "url/url_constants.h" |
16 | 18 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Build up the final vector by concatenating hosts and RCDs. | 131 // Build up the final vector by concatenating hosts and RCDs. |
130 std::set<std::string> distinct_hosts; | 132 std::set<std::string> distinct_hosts; |
131 for (HostVector::iterator it = hosts_best_rcd.begin(); | 133 for (HostVector::iterator it = hosts_best_rcd.begin(); |
132 it != hosts_best_rcd.end(); | 134 it != hosts_best_rcd.end(); |
133 ++it) | 135 ++it) |
134 distinct_hosts.insert(it->first + it->second); | 136 distinct_hosts.insert(it->first + it->second); |
135 return distinct_hosts; | 137 return distinct_hosts; |
136 } | 138 } |
137 | 139 |
138 } // namespace permission_message_util | 140 } // namespace permission_message_util |
OLD | NEW |