| 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 "extensions/common/permissions/permission_set.h" | 5 #include "extensions/common/permissions/permission_set.h" |
| 6 | 6 |
| 7 #include <algorithm> | |
| 8 #include <iterator> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "extensions/common/permissions/permissions_info.h" | 7 #include "extensions/common/permissions/permissions_info.h" |
| 12 #include "extensions/common/url_pattern.h" | 8 #include "extensions/common/url_pattern.h" |
| 13 #include "extensions/common/url_pattern_set.h" | |
| 14 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 15 | 10 |
| 16 namespace extensions { | 11 namespace extensions { |
| 17 | 12 |
| 18 namespace { | 13 namespace { |
| 19 | 14 |
| 20 void AddPatternsAndRemovePaths(const URLPatternSet& set, URLPatternSet* out) { | 15 void AddPatternsAndRemovePaths(const URLPatternSet& set, URLPatternSet* out) { |
| 21 DCHECK(out); | 16 DCHECK(out); |
| 22 for (URLPatternSet::const_iterator i = set.begin(); i != set.end(); ++i) { | 17 for (URLPatternSet::const_iterator i = set.begin(); i != set.end(); ++i) { |
| 23 URLPattern p = *i; | 18 URLPattern p = *i; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 if (iter->ImpliesAllHosts()) { | 270 if (iter->ImpliesAllHosts()) { |
| 276 should_warn_all_hosts_ = WARN_ALL_HOSTS; | 271 should_warn_all_hosts_ = WARN_ALL_HOSTS; |
| 277 return; | 272 return; |
| 278 } | 273 } |
| 279 } | 274 } |
| 280 | 275 |
| 281 should_warn_all_hosts_ = DONT_WARN_ALL_HOSTS; | 276 should_warn_all_hosts_ = DONT_WARN_ALL_HOSTS; |
| 282 } | 277 } |
| 283 | 278 |
| 284 } // namespace extensions | 279 } // namespace extensions |
| OLD | NEW |