summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/active_tab_permission_granter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/active_tab_permission_granter.cc')
-rw-r--r--chrome/browser/extensions/active_tab_permission_granter.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/active_tab_permission_granter.cc b/chrome/browser/extensions/active_tab_permission_granter.cc
index ecedd34..756007e 100644
--- a/chrome/browser/extensions/active_tab_permission_granter.cc
+++ b/chrome/browser/extensions/active_tab_permission_granter.cc
@@ -37,6 +37,9 @@ ActiveTabPermissionGranter::ActiveTabPermissionGranter(
ActiveTabPermissionGranter::~ActiveTabPermissionGranter() {}
void ActiveTabPermissionGranter::GrantIfRequested(const Extension* extension) {
+ // Active tab grant request implies there was a user gesture.
+ web_contents()->UserGestureDone();
+
if (granted_extensions_.Contains(extension->id()))
return;