| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/json/json_file_value_serializer.h" | 6 #include "base/json/json_file_value_serializer.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 // TODO(erikkay) add a string for this permission. | 676 // TODO(erikkay) add a string for this permission. |
| 677 skip.insert(APIPermission::kBackground); | 677 skip.insert(APIPermission::kBackground); |
| 678 | 678 |
| 679 skip.insert(APIPermission::kClipboardWrite); | 679 skip.insert(APIPermission::kClipboardWrite); |
| 680 | 680 |
| 681 // The cookie permission does nothing unless you have associated host | 681 // The cookie permission does nothing unless you have associated host |
| 682 // permissions. | 682 // permissions. |
| 683 skip.insert(APIPermission::kCookie); | 683 skip.insert(APIPermission::kCookie); |
| 684 | 684 |
| 685 // These are warned as part of host permission checks. | 685 // These are warned as part of host permission checks. |
| 686 skip.insert(APIPermission::kDeclarativeContent); |
| 686 skip.insert(APIPermission::kPageCapture); | 687 skip.insert(APIPermission::kPageCapture); |
| 687 skip.insert(APIPermission::kProxy); | 688 skip.insert(APIPermission::kProxy); |
| 688 skip.insert(APIPermission::kWebRequest); | 689 skip.insert(APIPermission::kWebRequest); |
| 689 skip.insert(APIPermission::kWebRequestBlocking); | 690 skip.insert(APIPermission::kWebRequestBlocking); |
| 690 skip.insert(APIPermission::kDeclarativeWebRequest); | 691 skip.insert(APIPermission::kDeclarativeWebRequest); |
| 691 skip.insert(APIPermission::kTabCapture); | 692 skip.insert(APIPermission::kTabCapture); |
| 692 | 693 |
| 693 // This permission requires explicit user action (context menu handler) | 694 // This permission requires explicit user action (context menu handler) |
| 694 // so we won't prompt for it for now. | 695 // so we won't prompt for it for now. |
| 695 skip.insert(APIPermission::kFileBrowserHandler); | 696 skip.insert(APIPermission::kFileBrowserHandler); |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 apis.insert(APIPermission::kWebRequest); | 1359 apis.insert(APIPermission::kWebRequest); |
| 1359 apis.insert(APIPermission::kFileBrowserHandler); | 1360 apis.insert(APIPermission::kFileBrowserHandler); |
| 1360 EXPECT_EQ(2U, apis.size()); | 1361 EXPECT_EQ(2U, apis.size()); |
| 1361 | 1362 |
| 1362 scoped_refptr<PermissionSet> perm_set; | 1363 scoped_refptr<PermissionSet> perm_set; |
| 1363 perm_set = new PermissionSet(apis, empty_extent, empty_extent); | 1364 perm_set = new PermissionSet(apis, empty_extent, empty_extent); |
| 1364 EXPECT_EQ(4U, perm_set->apis().size()); | 1365 EXPECT_EQ(4U, perm_set->apis().size()); |
| 1365 } | 1366 } |
| 1366 | 1367 |
| 1367 } // namespace extensions | 1368 } // namespace extensions |
| OLD | NEW |