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

Issue 2487233002: Handle push resubscribes with no sender info (avoids DCHECK) (Closed)

Created:
4 years, 1 month ago by harkness
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Handle push resubscribes with no sender info (avoids DCHECK) - Prior to this patch you would fail a DCHECK if you called PushManager.subscribe() with a sender id or key and then PushManager.subscribe() without a sender id or key. - This fixes that and only allows resubscribing with no sender info when the original subscribe was made with a gcm_sender_id. Otherwise we throw an AbortError - no key provided. BUG=659230 Review-Url: https://codereview.chromium.org/2469293002 Cr-Commit-Position: refs/heads/master@{#430601} (cherry picked from commit d8e7aa32e6e15b1ce0cde3a6ccf878fb16ffc816) Committed: https://chromium.googlesource.com/chromium/src/+/bd071b0aaa4d50bb0cd48becbd108fa87802c728

Patch Set 1 #

Patch Set 2 : Handle push resubscribes with no sender info (avoids DCHECK) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -30 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 4 chunks +237 lines, -17 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 2 chunks +20 lines, -1 line 0 comments Download
M chrome/test/data/push_messaging/service_worker.js View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/push_messaging/test_no_manifest.html View 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 4 chunks +49 lines, -12 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
harkness
Committed patchset #2 (id:20001) manually as bd071b0aaa4d50bb0cd48becbd108fa87802c728.
4 years, 1 month ago (2016-11-09 15:41:30 UTC) #2
jennyz
4 years, 1 month ago (2016-11-18 00:09:13 UTC) #3
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2511133003/ by jennyz@chromium.org.

The reason for reverting is:
https://uberchromegw.corp.google.com/i/chromeos.chrome/builders/Linux%20Chrom....

Powered by Google App Engine
This is Rietveld 408576698