summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-06-29 09:51:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-29 09:51:50 -0700
commitfcc93ba6265f6cb1f193ac8b5827d37514dcf653 (patch)
treeeb67e09a658fc74341631d47b2f1fe71825cd633
parent72bb3424c2422f178705b351eb70d14b69f0301e (diff)
parent553f66e21be6e11120460830fc78793a4d11b465 (diff)
downloadframeworks_av-fcc93ba6265f6cb1f193ac8b5827d37514dcf653.zip
frameworks_av-fcc93ba6265f6cb1f193ac8b5827d37514dcf653.tar.gz
frameworks_av-fcc93ba6265f6cb1f193ac8b5827d37514dcf653.tar.bz2
Merge "Instantiate a NetworkChangeNotifier to have chromium transparently handle interface"
-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);
}