Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 "devtools", | 40 "devtools", |
| 41 "events", | 41 "events", |
| 42 "extension", | 42 "extension", |
| 43 "i18n", | 43 "i18n", |
| 44 "omnibox", | 44 "omnibox", |
| 45 "pageAction", | 45 "pageAction", |
| 46 "pageActions", | 46 "pageActions", |
| 47 "permissions", | 47 "permissions", |
| 48 "runtime", | 48 "runtime", |
| 49 "scriptBadge", | 49 "scriptBadge", |
| 50 "tabCapture", | |
|
Aaron Boodman
2012/10/16 04:19:27
I don't think we should do this. I think it should
justinlin
2012/10/17 08:32:26
Done.
| |
| 50 "tabs", | 51 "tabs", |
| 51 "test", | 52 "test", |
| 52 "types", | 53 "types", |
| 53 "windows" | 54 "windows" |
| 54 }; | 55 }; |
| 55 const size_t kNumNonPermissionModuleNames = | 56 const size_t kNumNonPermissionModuleNames = |
| 56 arraysize(kNonPermissionModuleNames); | 57 arraysize(kNonPermissionModuleNames); |
| 57 | 58 |
| 58 // Names of functions (within modules requiring permissions) that can be used | 59 // Names of functions (within modules requiring permissions) that can be used |
| 59 // without asking for the module permission. In other words, functions you can | 60 // without asking for the module permission. In other words, functions you can |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 587 std::set<std::string> new_hosts_only; | 588 std::set<std::string> new_hosts_only; |
| 588 | 589 |
| 589 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(), | 590 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(), |
| 590 old_hosts_set.begin(), old_hosts_set.end(), | 591 old_hosts_set.begin(), old_hosts_set.end(), |
| 591 std::inserter(new_hosts_only, new_hosts_only.begin())); | 592 std::inserter(new_hosts_only, new_hosts_only.begin())); |
| 592 | 593 |
| 593 return !new_hosts_only.empty(); | 594 return !new_hosts_only.empty(); |
| 594 } | 595 } |
| 595 | 596 |
| 596 } // namespace extensions | 597 } // namespace extensions |
| OLD | NEW |