summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-03-23 18:13:52 +0000
committerKristian Monsen <kristianm@google.com>2011-03-23 18:28:23 +0000
commitafc9dcd507336ec34e08df536c7cdf206f405545 (patch)
tree46ff65eb1c293d7680ff54db9f8997787f0280c0 /WebKit/android
parent50e0a1d1948f6b53b9b6ea82f865812a7b42221b (diff)
downloadexternal_webkit-afc9dcd507336ec34e08df536c7cdf206f405545.zip
external_webkit-afc9dcd507336ec34e08df536c7cdf206f405545.tar.gz
external_webkit-afc9dcd507336ec34e08df536c7cdf206f405545.tar.bz2
Possible fix for bug 4155219 IPv6 support: DNS is not reset when switching from IPv4/IPv6 network to IPv4 network
Enable network change notifier Change-Id: I89919c8a8bc54aaf0b2e1b013fbdf43abe657295
Diffstat (limited to 'WebKit/android')
-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;
}