| Index: content/browser/frame_host/render_frame_host_impl.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
| index 429e8a18bf188d787970290582bc5ac63cdf1f2b..f499922b077fd1638132a32ed3a21109d5504078 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -937,7 +937,7 @@ void RenderFrameHostImpl::OnRunBeforeUnloadConfirm(
|
| }
|
|
|
| void RenderFrameHostImpl::OnRequestPlatformNotificationPermission(
|
| - const GURL& origin, int request_id) {
|
| + const GURL& origin, int request_id, bool user_gesture) {
|
| base::Callback<void(bool)> done_callback = base::Bind(
|
| &RenderFrameHostImpl::PlatformNotificationPermissionRequestDone,
|
| weak_ptr_factory_.GetWeakPtr(),
|
| @@ -946,13 +946,12 @@ void RenderFrameHostImpl::OnRequestPlatformNotificationPermission(
|
| if (!delegate()->GetAsWebContents())
|
| return;
|
|
|
| - // TODO(peter): plumb user_gesture and bridge_id.
|
| GetContentClient()->browser()->RequestPermission(
|
| content::PERMISSION_NOTIFICATIONS,
|
| delegate()->GetAsWebContents(),
|
| routing_id_,
|
| origin,
|
| - true, // user_gesture,
|
| + user_gesture,
|
| done_callback);
|
| }
|
|
|
|
|