Fix NetworkChangeNotifierAutoDetect destroy method.
commit30035b6683d9daad1b6a3278c96537dcfe1d4abe
authortimvolodine <timvolodine@chromium.org>
Tue, 22 Sep 2015 11:56:35 +0000 (22 04:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 12:09:26 +0000 (22 12:09 +0000)
treea0cca3b43de86813ed0c098dac2894af5b869cb7
parentb24af55f762880a57270b01dc49be4c441b8ef00
Fix NetworkChangeNotifierAutoDetect destroy method.

Make sure to unregister NetworkChangeNotifierAutoDetect from listening
to ApplicationStatus when it is destroyed. Currently the
NetworkChangeNotifierAutoDetect will still function after
NetworkChangeNotifier.setAutoDetectConnectivityState(false) is invoked
and the application changes state.

BUG=534468

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

Cr-Commit-Position: refs/heads/master@{#350143}
net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java