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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 skip.insert(APIPermission::kWindowShape); | 775 skip.insert(APIPermission::kWindowShape); |
776 | 776 |
777 // These permissions are restricted to extensions force-installed by policy | 777 // These permissions are restricted to extensions force-installed by policy |
778 // and don't require a prompt, i.e. they're restricted to location 'policy'. | 778 // and don't require a prompt, i.e. they're restricted to location 'policy'. |
779 skip.insert(APIPermission::kEnterprisePlatformKeys); | 779 skip.insert(APIPermission::kEnterprisePlatformKeys); |
780 skip.insert(APIPermission::kEnterpriseDeviceAttributes); | 780 skip.insert(APIPermission::kEnterpriseDeviceAttributes); |
781 | 781 |
782 // TODO(erikkay) add a string for this permission. | 782 // TODO(erikkay) add a string for this permission. |
783 skip.insert(APIPermission::kBackground); | 783 skip.insert(APIPermission::kBackground); |
784 | 784 |
785 skip.insert(APIPermission::kClipboardWrite); | |
786 skip.insert(APIPermission::kClipboard); | 785 skip.insert(APIPermission::kClipboard); |
787 | 786 |
788 // The cookie permission does nothing unless you have associated host | 787 // The cookie permission does nothing unless you have associated host |
789 // permissions. | 788 // permissions. |
790 skip.insert(APIPermission::kCookie); | 789 skip.insert(APIPermission::kCookie); |
791 | 790 |
792 // These are warned as part of host permission checks. | 791 // These are warned as part of host permission checks. |
793 skip.insert(APIPermission::kDataReductionProxy); | 792 skip.insert(APIPermission::kDataReductionProxy); |
794 skip.insert(APIPermission::kDeclarativeContent); | 793 skip.insert(APIPermission::kDeclarativeContent); |
795 skip.insert(APIPermission::kPageCapture); | 794 skip.insert(APIPermission::kPageCapture); |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 scoped_refptr<Extension> extension_dwr( | 1763 scoped_refptr<Extension> extension_dwr( |
1765 LoadManifest("permissions", "web_request_all_host_permissions.json")); | 1764 LoadManifest("permissions", "web_request_all_host_permissions.json")); |
1766 const PermissionSet& permissions_dwr = | 1765 const PermissionSet& permissions_dwr = |
1767 extension_dwr->permissions_data()->active_permissions(); | 1766 extension_dwr->permissions_data()->active_permissions(); |
1768 | 1767 |
1769 EXPECT_FALSE(PermissionMessageProvider::Get()->IsPrivilegeIncrease( | 1768 EXPECT_FALSE(PermissionMessageProvider::Get()->IsPrivilegeIncrease( |
1770 permissions, permissions_dwr, extension->GetType())); | 1769 permissions, permissions_dwr, extension->GetType())); |
1771 } | 1770 } |
1772 | 1771 |
1773 } // namespace extensions | 1772 } // namespace extensions |
OLD | NEW |