Bug 1167132 - Part 9: [NetworkManager] Move network information into a separate interface (shell). r=fabrice
authorJessica Jong <jjong@mozilla.com>
Wed, 29 Jul 2015 02:11:00 -0400
changeset 286951 d922c89bb2128d8cf5f74024fdc3fc77a5c6260e
parent 286950 b61a73af6333694a3eb7982baf7984cf6d81f300
child 286952 928cd60fdc21d9ff08c2442bded9963c13f36780
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1167132
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1167132 - Part 9: [NetworkManager] Move network information into a separate interface (shell). r=fabrice
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -196,19 +196,19 @@ var shell = {
     if (this.onlineForCrashReport()) {
       this.submitQueuedCrashes();
       return;
     }
 
     debugCrashReport('Not online, postponing.');
 
     Services.obs.addObserver(function observer(subject, topic, state) {
-      let network = subject.QueryInterface(Ci.nsINetworkInterface);
-      if (network.state == Ci.nsINetworkInterface.NETWORK_STATE_CONNECTED
-          && network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
+      let network = subject.QueryInterface(Ci.nsINetworkInfo);
+      if (network.state == Ci.nsINetworkInfo.NETWORK_STATE_CONNECTED
+          && network.type == Ci.nsINetworkInfo.NETWORK_TYPE_WIFI) {
         shell.submitQueuedCrashes();
 
         Services.obs.removeObserver(observer, topic);
       }
     }, "network-connection-state-changed", false);
   },
 
   get homeURL() {