Push API: do not unregister from BackgroundModeManager from Shutdown.
commit99f869a9714dcf681932c68e2793dafcdafc4f05
authormvanouwerkerk <mvanouwerkerk@chromium.org>
Fri, 11 Sep 2015 16:50:35 +0000 (11 09:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 11 Sep 2015 16:51:26 +0000 (11 16:51 +0000)
tree9d05e1f3f43aab70e7db6b2dff38d21977d18950
parentf23471c866d7d3334d61538eb738d494542b5cac
Push API: do not unregister from BackgroundModeManager from Shutdown.

If we're in Shutdown the whole browser is tearing down, and moments
after Shutdown is called BackgroundModeManager itself will be destroyed.

This avoids unhooking auto launch on login and auto loading of the profile.

This also avoids doing extra work during shutdown.

BUG=527036

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

Cr-Commit-Position: refs/heads/master@{#348413}
chrome/browser/push_messaging/push_messaging_service_impl.cc