Commit 8fbbc669 authored by derekjchow's avatar derekjchow Committed by Commit bot

[Chromecast] Always receive notifications.

Call registerToReceiveNotificationsAlways in CastBrowserHelper.
Cast shell expects to receive network notifications at all times to
properly update network state.

R=gunsch@chromium.org
BUG=internal b/20641901

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

Cr-Commit-Position: refs/heads/master@{#327196}
parent 90b95ae8
...@@ -20,6 +20,7 @@ import org.chromium.content.browser.BrowserStartupController; ...@@ -20,6 +20,7 @@ import org.chromium.content.browser.BrowserStartupController;
import org.chromium.content.browser.DeviceUtils; import org.chromium.content.browser.DeviceUtils;
import org.chromium.content.common.ContentSwitches; import org.chromium.content.common.ContentSwitches;
import org.chromium.media.MediaDrmBridge; import org.chromium.media.MediaDrmBridge;
import org.chromium.net.NetworkChangeNotifier;
import java.util.UUID; import java.util.UUID;
...@@ -75,6 +76,9 @@ public class CastBrowserHelper { ...@@ -75,6 +76,9 @@ public class CastBrowserHelper {
Log.d(TAG, "Loading BrowserStartupController..."); Log.d(TAG, "Loading BrowserStartupController...");
BrowserStartupController.get(context, LibraryProcessType.PROCESS_BROWSER) BrowserStartupController.get(context, LibraryProcessType.PROCESS_BROWSER)
.startBrowserProcessesSync(false); .startBrowserProcessesSync(false);
NetworkChangeNotifier.init(context);
// Cast shell always expects to receive notifications to track network state.
NetworkChangeNotifier.registerToReceiveNotificationsAlways();
sIsBrowserInitialized = true; sIsBrowserInitialized = true;
MediaDrmBridge.addKeySystemUuidMapping(PLAYREADY_KEY_SYSTEM_NAME, PLAYREADY_UUID); MediaDrmBridge.addKeySystemUuidMapping(PLAYREADY_KEY_SYSTEM_NAME, PLAYREADY_UUID);
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment