| 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 | 631 |
| 632 TEST(PermissionsTest, PermissionMessages) { | 632 TEST(PermissionsTest, PermissionMessages) { |
| 633 // Ensure that all permissions that needs to show install UI actually have | 633 // Ensure that all permissions that needs to show install UI actually have |
| 634 // strings associated with them. | 634 // strings associated with them. |
| 635 APIPermissionSet skip; | 635 APIPermissionSet skip; |
| 636 | 636 |
| 637 // These are considered "nuisance" or "trivial" permissions that don't need | 637 // These are considered "nuisance" or "trivial" permissions that don't need |
| 638 // a prompt. | 638 // a prompt. |
| 639 skip.insert(APIPermission::kActiveTab); | 639 skip.insert(APIPermission::kActiveTab); |
| 640 skip.insert(APIPermission::kAlarms); | 640 skip.insert(APIPermission::kAlarms); |
| 641 skip.insert(APIPermission::kAlphaEnabled); |
| 641 skip.insert(APIPermission::kAlwaysOnTopWindows); | 642 skip.insert(APIPermission::kAlwaysOnTopWindows); |
| 642 skip.insert(APIPermission::kAppView); | 643 skip.insert(APIPermission::kAppView); |
| 643 skip.insert(APIPermission::kAudio); | 644 skip.insert(APIPermission::kAudio); |
| 644 skip.insert(APIPermission::kBrowsingData); | 645 skip.insert(APIPermission::kBrowsingData); |
| 645 skip.insert(APIPermission::kCastStreaming); | 646 skip.insert(APIPermission::kCastStreaming); |
| 646 skip.insert(APIPermission::kContextMenus); | 647 skip.insert(APIPermission::kContextMenus); |
| 647 skip.insert(APIPermission::kDiagnostics); | 648 skip.insert(APIPermission::kDiagnostics); |
| 648 skip.insert(APIPermission::kDns); | 649 skip.insert(APIPermission::kDns); |
| 649 skip.insert(APIPermission::kDownloadsShelf); | 650 skip.insert(APIPermission::kDownloadsShelf); |
| 650 skip.insert(APIPermission::kEmbeddedExtensionOptions); | 651 skip.insert(APIPermission::kEmbeddedExtensionOptions); |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 scoped_refptr<const PermissionSet> permissions_dwr( | 1791 scoped_refptr<const PermissionSet> permissions_dwr( |
| 1791 extension_dwr->permissions_data()->active_permissions()); | 1792 extension_dwr->permissions_data()->active_permissions()); |
| 1792 | 1793 |
| 1793 EXPECT_FALSE(PermissionMessageProvider::Get()-> | 1794 EXPECT_FALSE(PermissionMessageProvider::Get()-> |
| 1794 IsPrivilegeIncrease(permissions.get(), | 1795 IsPrivilegeIncrease(permissions.get(), |
| 1795 permissions_dwr.get(), | 1796 permissions_dwr.get(), |
| 1796 extension->GetType())); | 1797 extension->GetType())); |
| 1797 } | 1798 } |
| 1798 | 1799 |
| 1799 } // namespace extensions | 1800 } // namespace extensions |
| OLD | NEW |