| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/test/test_permission_message_provider.h" | 5 #include "extensions/test/test_permission_message_provider.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 TestPermissionMessageProvider::TestPermissionMessageProvider() { | 9 TestPermissionMessageProvider::TestPermissionMessageProvider() { |
| 10 } | 10 } |
| 11 | 11 |
| 12 TestPermissionMessageProvider::~TestPermissionMessageProvider() { | 12 TestPermissionMessageProvider::~TestPermissionMessageProvider() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 PermissionMessages TestPermissionMessageProvider::GetPermissionMessages( | 15 PermissionMessageStrings |
| 16 TestPermissionMessageProvider::GetPermissionMessageStrings( |
| 16 const PermissionSet* permissions, | 17 const PermissionSet* permissions, |
| 17 Manifest::Type extension_type) const { | 18 Manifest::Type extension_type) const { |
| 18 return PermissionMessages(); | 19 return PermissionMessageStrings(); |
| 20 } |
| 21 |
| 22 PermissionMessageIDs |
| 23 TestPermissionMessageProvider::GetLegacyPermissionMessageIDs( |
| 24 const PermissionSet* permissions, |
| 25 Manifest::Type extension_type) const { |
| 26 return PermissionMessageIDs(); |
| 19 } | 27 } |
| 20 | 28 |
| 21 CoalescedPermissionMessages | 29 CoalescedPermissionMessages |
| 22 TestPermissionMessageProvider::GetCoalescedPermissionMessages( | 30 TestPermissionMessageProvider::GetCoalescedPermissionMessages( |
| 23 const PermissionIDSet& permissions) const { | 31 const PermissionIDSet& permissions) const { |
| 24 return CoalescedPermissionMessages(); | 32 return CoalescedPermissionMessages(); |
| 25 } | 33 } |
| 26 | 34 |
| 27 std::vector<base::string16> TestPermissionMessageProvider::GetWarningMessages( | 35 std::vector<base::string16> |
| 36 TestPermissionMessageProvider::GetLegacyWarningMessages( |
| 28 const PermissionSet* permissions, | 37 const PermissionSet* permissions, |
| 29 Manifest::Type extension_type) const { | 38 Manifest::Type extension_type) const { |
| 30 return std::vector<base::string16>(); | 39 return std::vector<base::string16>(); |
| 31 } | 40 } |
| 32 | 41 |
| 33 std::vector<base::string16> | 42 std::vector<base::string16> |
| 34 TestPermissionMessageProvider::GetWarningMessagesDetails( | 43 TestPermissionMessageProvider::GetLegacyWarningMessagesDetails( |
| 35 const PermissionSet* permissions, | 44 const PermissionSet* permissions, |
| 36 Manifest::Type extension_type) const { | 45 Manifest::Type extension_type) const { |
| 37 return std::vector<base::string16>(); | 46 return std::vector<base::string16>(); |
| 38 } | 47 } |
| 39 | 48 |
| 40 bool TestPermissionMessageProvider::IsPrivilegeIncrease( | 49 bool TestPermissionMessageProvider::IsPrivilegeIncrease( |
| 41 const PermissionSet* old_permissions, | 50 const PermissionSet* old_permissions, |
| 42 const PermissionSet* new_permissions, | 51 const PermissionSet* new_permissions, |
| 43 Manifest::Type extension_type) const { | 52 Manifest::Type extension_type) const { |
| 44 return false; | 53 return false; |
| 45 } | 54 } |
| 46 | 55 |
| 47 PermissionIDSet TestPermissionMessageProvider::GetAllPermissionIDs( | 56 PermissionIDSet TestPermissionMessageProvider::GetAllPermissionIDs( |
| 48 const PermissionSet* permissions, | 57 const PermissionSet* permissions, |
| 49 Manifest::Type extension_type) const { | 58 Manifest::Type extension_type) const { |
| 50 return PermissionIDSet(); | 59 return PermissionIDSet(); |
| 51 } | 60 } |
| 52 | 61 |
| 53 } // namespace extensions | 62 } // namespace extensions |
| OLD | NEW |