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

Issue 1140873005: Push API: Avoid false positive DCHECK. (Closed)

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

Description

Push API: Avoid false positive DCHECK. PushMessagingAppIdentifier::FindByAppId was DCHECKing when called from PushMessagingServiceImpl::CanHandle to see if an app_id belongs to Push, since it assumes that it would only be called with valid Push app_ids. This patch makes it test whether the app_id is a Push Messaging app_id before performing any validation DCHECKs. BUG=489304 Committed: https://crrev.com/c85006f042cf657a2e45b0b2fec5d32fedb67dff Cr-Commit-Position: refs/heads/master@{#330378}

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M chrome/browser/push_messaging/push_messaging_app_identifier.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
johnme
5 years, 7 months ago (2015-05-18 15:51:12 UTC) #2
Michael van Ouwerkerk
lgtm thanks!
5 years, 7 months ago (2015-05-18 15:52:51 UTC) #3
Peter Beverloo
test?
5 years, 7 months ago (2015-05-18 16:05:40 UTC) #5
johnme
Added test. On 2015/05/18 16:05:40, Peter Beverloo wrote: > test? Done.
5 years, 7 months ago (2015-05-18 16:18:56 UTC) #6
Peter Beverloo
lgtm, thanks! :)
5 years, 7 months ago (2015-05-18 16:20:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140873005/20001
5 years, 7 months ago (2015-05-18 16:21:39 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-18 17:17:44 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 22:40:39 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c85006f042cf657a2e45b0b2fec5d32fedb67dff
Cr-Commit-Position: refs/heads/master@{#330378}

Powered by Google App Engine
This is Rietveld 408576698