summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/chromium_http
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-06-20 13:57:04 -0700
committerAndreas Huber <andih@google.com>2011-06-29 09:17:59 -0700
commit553f66e21be6e11120460830fc78793a4d11b465 (patch)
treea99ad12442677fa8ab40895f901a2b8f77745544 /media/libstagefright/chromium_http
parent95068be1426dc0a4dc856cf9e35550c31b901711 (diff)
downloadframeworks_av-553f66e21be6e11120460830fc78793a4d11b465.zip
frameworks_av-553f66e21be6e11120460830fc78793a4d11b465.tar.gz
frameworks_av-553f66e21be6e11120460830fc78793a4d11b465.tar.bz2
Instantiate a NetworkChangeNotifier to have chromium transparently handle interface
changes. Change-Id: If48d2934ce29d68b9c31a1d120fe8f134f277a33
Diffstat (limited to 'media/libstagefright/chromium_http')
-rw-r--r--media/libstagefright/chromium_http/support.cpp3
1 files changed, 3 insertions, 0 deletions
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<net::URLRequestContext> gReqContext;
+static scoped_ptr<net::NetworkChangeNotifier> 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);
}