Chromium Code Reviews| Index: chrome/browser/extensions/api/permissions/permissions_api.cc |
| =================================================================== |
| --- chrome/browser/extensions/api/permissions/permissions_api.cc (revision 262146) |
| +++ chrome/browser/extensions/api/permissions/permissions_api.cc (working copy) |
| @@ -129,6 +129,7 @@ |
| perms_updater.AddPermissions(GetExtension(), requested_permissions_.get()); |
| results_ = Request::Results::Create(true); |
| + retain_user_gesture_ = true; |
| SendResponse(true); |
|
not at google - send to devlin
2014/04/09 16:44:32
you may need to split this method up.
|
| Release(); // Balanced in RunImpl(). |
| @@ -188,6 +189,7 @@ |
| PermissionsUpdater perms_updater(GetProfile()); |
| perms_updater.AddPermissions(GetExtension(), requested_permissions_.get()); |
| results_ = Request::Results::Create(true); |
| + retain_user_gesture_ = true; |
|
not at google - send to devlin
2014/04/09 16:44:32
this creates the problem you mention in the bug. w
wjywbs
2014/04/09 18:13:30
I will post a reply on the bug to discuss this.
|
| SendResponse(true); |
| return true; |
| } |