summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc')
-rw-r--r--chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc b/chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc
index ca96634..6c7e8d4 100644
--- a/chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc
+++ b/chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc
@@ -74,8 +74,7 @@ TEST_F(BrowserPermissionsPolicyDelegateTest, CanExecuteScriptOnPage) {
// The same call should succeed with a normal process, but fail with a signin
// process.
- const PermissionsData* permissions_data =
- PermissionsData::ForExtension(extension);
+ const PermissionsData* permissions_data = extension->permissions_data();
EXPECT_TRUE(permissions_data->CanExecuteScriptOnPage(extension,
kSigninUrl,
kSigninUrl,