Unregister from GCM when the only GCM app is removed
commit514b6b0475dd0b15a7a17f020247eaba72841544
authorjianli <jianli@chromium.org>
Wed, 11 Feb 2015 22:07:06 +0000 (11 14:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Feb 2015 22:08:28 +0000 (11 22:08 +0000)
tree9947328e908ab85408e268d72b2ed438b2f021c5
parent845b3e52b289738cf2cef19e1883eed405a0de21
Unregister from GCM when the only GCM app is removed

The bug occurred because we remove app handler on extension/app unload.
We should not do it at this time since uninstall will trigger unload
first.

BUG=457433
TEST=tests updated
TBR=kalman@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#315846}
chrome/browser/extensions/extension_gcm_app_handler.cc
chrome/browser/extensions/extension_gcm_app_handler_unittest.cc