OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/permissions/permission_set.h" | 5 #include "chrome/common/extensions/permissions/permission_set.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... | |
33 if (a == "org") | 33 if (a == "org") |
34 return b != "com" && b != "net"; | 34 return b != "com" && b != "net"; |
35 return false; | 35 return false; |
36 } | 36 } |
37 | 37 |
38 // Names of API modules that can be used without listing it in the | 38 // Names of API modules that can be used without listing it in the |
39 // permissions section of the manifest. | 39 // permissions section of the manifest. |
40 const char* kNonPermissionModuleNames[] = { | 40 const char* kNonPermissionModuleNames[] = { |
41 "browserAction", | 41 "browserAction", |
42 "commands", | 42 "commands", |
43 "devtools", | |
not at google - send to devlin
2013/02/15 22:26:17
ditto
cduvall
2013/02/19 23:58:49
Done.
| |
44 "events", | 43 "events", |
45 "extension", | 44 "extension", |
46 "i18n", | 45 "i18n", |
47 "omnibox", | 46 "omnibox", |
48 "pageAction", | 47 "pageAction", |
49 "pageActions", | 48 "pageActions", |
50 "pageLauncher", | 49 "pageLauncher", |
51 "permissions", | 50 "permissions", |
52 "runtime", | 51 "runtime", |
53 "scriptBadge", | 52 "scriptBadge", |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
601 std::set<std::string> new_hosts_only; | 600 std::set<std::string> new_hosts_only; |
602 | 601 |
603 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(), | 602 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(), |
604 old_hosts_set.begin(), old_hosts_set.end(), | 603 old_hosts_set.begin(), old_hosts_set.end(), |
605 std::inserter(new_hosts_only, new_hosts_only.begin())); | 604 std::inserter(new_hosts_only, new_hosts_only.begin())); |
606 | 605 |
607 return !new_hosts_only.empty(); | 606 return !new_hosts_only.empty(); |
608 } | 607 } |
609 | 608 |
610 } // namespace extensions | 609 } // namespace extensions |
OLD | NEW |