DescriptionPush 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 #
Messages
Total messages: 12 (4 generated)
|