summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebKit/android/WebCoreSupport/ChromiumInit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromiumInit.cpp b/WebKit/android/WebCoreSupport/ChromiumInit.cpp
index 221704b..1872fb9 100644
--- a/WebKit/android/WebCoreSupport/ChromiumInit.cpp
+++ b/WebKit/android/WebCoreSupport/ChromiumInit.cpp
@@ -54,6 +54,10 @@ bool logMessageHandler(int severity, const char* file, int line, size_t message_
return false;
}
+namespace {
+ scoped_ptr<net::NetworkChangeNotifier> networkChangeNotifier;
+}
+
void initChromium()
{
static Lock lock;
@@ -61,6 +65,7 @@ void initChromium()
static bool initCalled = false;
if (!initCalled) {
logging::SetLogMessageHandler(logMessageHandler);
+ networkChangeNotifier.reset(net::NetworkChangeNotifier::Create());
net::HttpNetworkLayer::EnableSpdy("npn");
initCalled = true;
}