From 553f66e21be6e11120460830fc78793a4d11b465 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 20 Jun 2011 13:57:04 -0700 Subject: Instantiate a NetworkChangeNotifier to have chromium transparently handle interface changes. Change-Id: If48d2934ce29d68b9c31a1d120fe8f134f277a33 --- media/libstagefright/chromium_http/support.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'media/libstagefright/chromium_http') diff --git a/media/libstagefright/chromium_http/support.cpp b/media/libstagefright/chromium_http/support.cpp index ed6846c..967f126 100644 --- a/media/libstagefright/chromium_http/support.cpp +++ b/media/libstagefright/chromium_http/support.cpp @@ -41,6 +41,7 @@ namespace android { static Mutex gNetworkThreadLock; static base::Thread *gNetworkThread = NULL; static scoped_refptr gReqContext; +static scoped_ptr gNetworkChangeNotifier; static void InitializeNetworkThreadIfNecessary() { Mutex::Autolock autoLock(gNetworkThreadLock); @@ -52,6 +53,8 @@ static void InitializeNetworkThreadIfNecessary() { gReqContext = new SfRequestContext; + gNetworkChangeNotifier.reset(net::NetworkChangeNotifier::Create()); + net::AndroidNetworkLibrary::RegisterSharedInstance( new SfNetworkLibrary); } -- cgit v1.1