Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Issue 2316673002: Fix PushManager.subscribe() permission request on Android (Closed)

Created:
4 years, 3 months ago by johnme
Modified:
4 years, 3 months ago
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-permissions_chromium.org, johnme+watch_chromium.org, harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PushManager.subscribe() permission request on Android https://codereview.chromium.org/2149883002 merged the PushMessagingPermissionContext into the NotificationPermissionContext. Unfortunately, this meant that PushManager.subscribe() tried to show a push messaging permission infobar instead of the notifications infobar, which fails because there is no push messaging infobar. This patch switches push messaging back to the notifications infobar. BUG=644256 Committed: https://crrev.com/e0db126dd99d297686d49eedd745d196708167ee Cr-Commit-Position: refs/heads/master@{#416762}

Patch Set 1 #

Patch Set 2 : Also test notifications permission #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/push_messaging/PushMessagingTest.java View 1 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_queue_controller.cc View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 15 (8 generated)
harkness
lgtm but you should have someone more familiar with Java also take a look.
4 years, 3 months ago (2016-09-06 15:24:05 UTC) #3
johnme
raymes: Please review changes in chrome/browser/permissions peter: Please review changes in chrome/android I'm hoping to ...
4 years, 3 months ago (2016-09-06 15:27:35 UTC) #6
Peter Beverloo
lgtm
4 years, 3 months ago (2016-09-06 15:28:10 UTC) #7
raymes
lgtm https://codereview.chromium.org/2316673002/diff/20001/chrome/browser/permissions/permission_queue_controller.cc File chrome/browser/permissions/permission_queue_controller.cc (right): https://codereview.chromium.org/2316673002/diff/20001/chrome/browser/permissions/permission_queue_controller.cc#newcode135 chrome/browser/permissions/permission_queue_controller.cc:135: infobar_ = NotificationPermissionInfoBarDelegate::Create( This looks ok to merge ...
4 years, 3 months ago (2016-09-06 23:06:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2316673002/20001
4 years, 3 months ago (2016-09-06 23:08:45 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 23:16:44 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 23:20:02 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e0db126dd99d297686d49eedd745d196708167ee
Cr-Commit-Position: refs/heads/master@{#416762}

Powered by Google App Engine
This is Rietveld 408576698