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/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 skip.insert(APIPermission::kWallpaperPrivate); | 739 skip.insert(APIPermission::kWallpaperPrivate); |
740 skip.insert(APIPermission::kWebRequestInternal); | 740 skip.insert(APIPermission::kWebRequestInternal); |
741 skip.insert(APIPermission::kWebrtcAudioPrivate); | 741 skip.insert(APIPermission::kWebrtcAudioPrivate); |
742 skip.insert(APIPermission::kWebrtcLoggingPrivate); | 742 skip.insert(APIPermission::kWebrtcLoggingPrivate); |
743 skip.insert(APIPermission::kWebstorePrivate); | 743 skip.insert(APIPermission::kWebstorePrivate); |
744 | 744 |
745 // Warned as part of host permissions. | 745 // Warned as part of host permissions. |
746 skip.insert(APIPermission::kDevtools); | 746 skip.insert(APIPermission::kDevtools); |
747 | 747 |
748 // Platform apps. | 748 // Platform apps. |
749 skip.insert(APIPermission::kBluetooth); | |
750 skip.insert(APIPermission::kFileSystem); | 749 skip.insert(APIPermission::kFileSystem); |
751 skip.insert(APIPermission::kFileSystemProvider); | 750 skip.insert(APIPermission::kFileSystemProvider); |
752 skip.insert(APIPermission::kFileSystemRetainEntries); | 751 skip.insert(APIPermission::kFileSystemRetainEntries); |
753 skip.insert(APIPermission::kSocket); | 752 skip.insert(APIPermission::kSocket); |
754 skip.insert(APIPermission::kUsbDevice); | 753 skip.insert(APIPermission::kUsbDevice); |
755 | 754 |
756 PermissionsInfo* info = PermissionsInfo::GetInstance(); | 755 PermissionsInfo* info = PermissionsInfo::GetInstance(); |
757 APIPermissionSet permissions = info->GetAll(); | 756 APIPermissionSet permissions = info->GetAll(); |
758 for (APIPermissionSet::const_iterator i = permissions.begin(); | 757 for (APIPermissionSet::const_iterator i = permissions.begin(); |
759 i != permissions.end(); ++i) { | 758 i != permissions.end(); ++i) { |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 scoped_refptr<const PermissionSet> permissions_dwr( | 1465 scoped_refptr<const PermissionSet> permissions_dwr( |
1467 extension_dwr->GetActivePermissions()); | 1466 extension_dwr->GetActivePermissions()); |
1468 | 1467 |
1469 EXPECT_FALSE(PermissionMessageProvider::Get()-> | 1468 EXPECT_FALSE(PermissionMessageProvider::Get()-> |
1470 IsPrivilegeIncrease(permissions.get(), | 1469 IsPrivilegeIncrease(permissions.get(), |
1471 permissions_dwr.get(), | 1470 permissions_dwr.get(), |
1472 extension->GetType())); | 1471 extension->GetType())); |
1473 } | 1472 } |
1474 | 1473 |
1475 } // namespace extensions | 1474 } // namespace extensions |
OLD | NEW |