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

Issue 1133083002: Reject the permissionState promise with NotSupported Exception (2/3) (Closed)

Created:
5 years, 7 months ago by Miguel Garcia
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, johnme+watch_chromium.org, mvanouwerkerk+watch_chromium.org, peter+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reject the permissionState promise with NotSupported Exception if userVisibleOnly is false (2/3) This change starts using the new onError flow and checks if user visible is supported. It does that by introducing a new method to the PushMessagingService that can be overriden by other vendors if they need to. 1) https://codereview.chromium.org/1130233003/ 2) This CL 3) Cleanup CL where the empty onError method is removed and two new Layout tests are added so the exception is actually tested BUG=479246 Committed: https://crrev.com/c03ef37c3c9bd8f8d099c42f5b74963d66db53cc Cr-Commit-Position: refs/heads/master@{#329655}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : Fix failing test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -8 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 3 chunks +9 lines, -2 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/child/push_messaging/push_provider.cc View 1 1 chunk +14 lines, -2 lines 1 comment Download
M content/common/push_messaging_messages.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/push_messaging_service.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
Miguel Garcia
Depends on https://codereview.chromium.org/1130233003/
5 years, 7 months ago (2015-05-11 12:00:24 UTC) #3
Peter Beverloo
lgtm % comments https://codereview.chromium.org/1133083002/diff/20001/content/child/push_messaging/push_provider.cc File content/child/push_messaging/push_provider.cc (right): https://codereview.chromium.org/1133083002/diff/20001/content/child/push_messaging/push_provider.cc#newcode294 content/child/push_messaging/push_provider.cc:294: "supported."; Capitalization - it's a sentence. ...
5 years, 7 months ago (2015-05-11 12:56:07 UTC) #4
Miguel Garcia
https://codereview.chromium.org/1133083002/diff/20001/content/child/push_messaging/push_provider.cc File content/child/push_messaging/push_provider.cc (right): https://codereview.chromium.org/1133083002/diff/20001/content/child/push_messaging/push_provider.cc#newcode294 content/child/push_messaging/push_provider.cc:294: "supported."; On 2015/05/11 12:56:07, Peter Beverloo wrote: > Capitalization ...
5 years, 7 months ago (2015-05-11 13:50:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133083002/40001
5 years, 7 months ago (2015-05-12 08:48:15 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/62956)
5 years, 7 months ago (2015-05-12 08:54:59 UTC) #10
Miguel Garcia
+Mike for shell/* files +jam for content/* files Thanks!
5 years, 7 months ago (2015-05-12 09:03:36 UTC) #12
Miguel Garcia
On 2015/05/12 09:03:36, Miguel Garcia wrote: > +Mike for shell/* files > +jam for content/* ...
5 years, 7 months ago (2015-05-12 09:07:00 UTC) #13
Mike West
Adding the enum to the IPC LGTM.
5 years, 7 months ago (2015-05-12 09:17:56 UTC) #14
Mike West
On 2015/05/12 at 09:17:56, Mike West wrote: > Adding the enum to the IPC LGTM. ...
5 years, 7 months ago (2015-05-12 09:21:26 UTC) #15
Miguel Garcia
Thanks Mike! On Tue, May 12, 2015 at 10:21 AM, <mkwst@chromium.org> wrote: > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 09:22:58 UTC) #16
Miguel Garcia
I was pointed out that Avi is closer to London time zone wise so swapping ...
5 years, 7 months ago (2015-05-12 11:15:21 UTC) #18
Mike West
Note that there's a PushMessaging test that's failing, and seems related.
5 years, 7 months ago (2015-05-12 11:28:18 UTC) #19
Miguel Garcia
Indeed, I am looking into it. On Tue, May 12, 2015 at 12:28 PM, <mkwst@chromium.org> ...
5 years, 7 months ago (2015-05-12 11:29:26 UTC) #20
Miguel Garcia
On 2015/05/12 11:29:26, Miguel Garcia wrote: > Indeed, I am looking into it. > > ...
5 years, 7 months ago (2015-05-13 09:22:27 UTC) #21
Miguel Garcia
I found out Avi is in an summit. Jam, could you have a look? Thanks
5 years, 7 months ago (2015-05-13 14:57:39 UTC) #23
Avi (use Gerrit)
lgtm No, I'm not in a summit, just missed this CL. Please ping me if ...
5 years, 7 months ago (2015-05-13 15:44:33 UTC) #24
Miguel Garcia
On 2015/05/13 15:44:33, Avi wrote: > lgtm > > No, I'm not in a summit, ...
5 years, 7 months ago (2015-05-13 15:45:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133083002/60001
5 years, 7 months ago (2015-05-13 15:46:31 UTC) #28
Miguel Garcia
On 2015/05/13 15:46:31, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 7 months ago (2015-05-13 15:50:40 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 7 months ago (2015-05-13 16:37:23 UTC) #30
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 16:38:04 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c03ef37c3c9bd8f8d099c42f5b74963d66db53cc
Cr-Commit-Position: refs/heads/master@{#329655}

Powered by Google App Engine
This is Rietveld 408576698