[Push] Unregister if there is no available SW.
commit3bd2059381aed28d3ba9410ca733b5faf259a939
authormlamouri <mlamouri@chromium.org>
Mon, 1 Dec 2014 21:20:48 +0000 (1 13:20 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Dec 2014 21:21:17 +0000 (1 21:21 +0000)
tree7a86783a64409f0655f9f7e76e8f56fc69a1f064
parent449cdbd05616de91fcf7e8b4282e300336d6d7c5
[Push] Unregister if there is no available SW.

When there is no registered service worker, instead of dropping the
message, the PushMessagingService will unregister the web app to which
the message was delivered.

BUG=437817

Review URL: https://codereview.chromium.org/766223002

Cr-Commit-Position: refs/heads/master@{#306254}
chrome/browser/services/gcm/fake_gcm_profile_service.cc
chrome/browser/services/gcm/fake_gcm_profile_service.h
chrome/browser/services/gcm/push_messaging_browsertest.cc
chrome/browser/services/gcm/push_messaging_service_impl.cc
chrome/browser/services/gcm/push_messaging_service_impl.h
chrome/test/data/push_messaging/test.html