Index: content/renderer/notification_permission_dispatcher.cc |
diff --git a/content/renderer/notification_permission_dispatcher.cc b/content/renderer/notification_permission_dispatcher.cc |
index 92d5529122b2dcbef19ce47de6de3a2ae09a24d0..0766d0043d9e77139aec3fce9f0efbec284ba0bc 100644 |
--- a/content/renderer/notification_permission_dispatcher.cc |
+++ b/content/renderer/notification_permission_dispatcher.cc |
@@ -8,6 +8,7 @@ |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/web/WebNotificationPermissionCallback.h" |
#include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
+#include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
#include "url/gurl.h" |
namespace content { |
@@ -24,7 +25,10 @@ void NotificationPermissionDispatcher::RequestPermission( |
blink::WebNotificationPermissionCallback* callback) { |
int request_id = pending_requests_.Add(callback); |
Send(new PlatformNotificationHostMsg_RequestPermission( |
- routing_id(), GURL(origin.toString()), request_id)); |
+ routing_id(), |
+ GURL(origin.toString()), |
+ request_id, |
+ blink::WebUserGestureIndicator::isProcessingUserGesture())); |
} |
bool NotificationPermissionDispatcher::OnMessageReceived( |