Chromium Code Reviews| Index: extensions/common/permissions/permissions_data.cc |
| diff --git a/extensions/common/permissions/permissions_data.cc b/extensions/common/permissions/permissions_data.cc |
| index 95dce8ba8f8f4e684e0e1b525b48f7507bdf96fc..65e0439d8782f5a193fc704e849c8fa774137e1d 100644 |
| --- a/extensions/common/permissions/permissions_data.cc |
| +++ b/extensions/common/permissions/permissions_data.cc |
| @@ -560,6 +560,14 @@ bool PermissionsData::CanCaptureVisiblePage(const Extension* extension, |
| return false; |
| } |
| +// static |
| +bool PermissionsData::ShouldNotifyForScriptExecution( |
| + const Extension* extension) { |
| + // For now, the user should be notified when an extension with all hosts |
|
not at google - send to devlin
2014/05/07 22:49:02
When this changes the name will no longer be appro
Devlin
2014/05/08 18:15:46
Yeah, I was just planning on changing it when the
not at google - send to devlin
2014/05/08 20:47:09
whatever matches the flag name.
|
| + // permission tries to execute a script on a page. |
| + return HasEffectiveAccessToAllHosts(extension); |
| +} |
| + |
| bool PermissionsData::ParsePermissions(Extension* extension, |
| base::string16* error) { |
| initial_required_permissions_.reset(new InitialPermissions); |