|
|
Propagate the user gesture bit when requesting push messaging permission.
Currently, directly subscribing to push messages without having
previously been granted notifications permissions results in
a permission prompt to the user. This prompt is hardcoded to always tell
the permissions layer that it was made by a user gesture, which may or
may not be the case.
This CL plumbs the user gesture bit from the renderer to the browser
when PushManager.subscribe() is called. This means permission metrics
for push will now have the correct values recorded for the user gesture bit.
BUG= 733483
Review-Url: https://codereview.chromium.org/2935333003
Cr-Commit-Position: refs/heads/master@{#479965}
Committed: https://chromium.googlesource.com/chromium/src/+/6ba3fa621ea462377f2d6f189ae1eb186f9cae16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+37 lines, -11 lines) |
Patch |
 |
M |
chrome/browser/push_messaging/push_messaging_service_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/push_messaging/push_messaging_service_impl.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/push_messaging/push_messaging_manager.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/push_messaging/push_messaging_manager.cc
|
View
|
|
5 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/push_messaging/push_provider.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/push_messaging/push_provider.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/push_messaging.mojom
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/browser/push_messaging_service.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/push_messaging/push_messaging_client.h
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/push_messaging/push_messaging_client.cc
|
View
|
|
5 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/layout_test/layout_test_push_messaging_service.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/layout_test/layout_test_push_messaging_service.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 24 (16 generated)
|