Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: extensions/common/permissions/permission_set.cc

Issue 884903003: [Extensions] Clean up some Permission[sData|Set] includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/common/permissions/permission_set.h ('k') | extensions/common/permissions/permissions_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698