summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/JavaBridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/JavaBridge.cpp')
-rw-r--r--WebKit/android/jni/JavaBridge.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/android/jni/JavaBridge.cpp b/WebKit/android/jni/JavaBridge.cpp
index 6aceb1c..f44bd0f 100644
--- a/WebKit/android/jni/JavaBridge.cpp
+++ b/WebKit/android/jni/JavaBridge.cpp
@@ -380,14 +380,14 @@ void JavaBridge::SetNetworkType(JNIEnv* env, jobject obj, jstring javatype, jstr
String type = to_string(env, javatype);
String subtype = to_string(env, javasubtype);
- Connection::ConnectionType connectionType = Connection::Unknown;
+ Connection::ConnectionType connectionType = Connection::UNKNOWN;
if (type == wifi)
- connectionType = Connection::WiFi;
+ connectionType = Connection::WIFI;
else if (type == mobile || type == mobileSupl) {
if (subtype == edge || subtype == gprs)
- connectionType = Connection::Cell_2G;
+ connectionType = Connection::CELL_2G;
else if (subtype == umts)
- connectionType = Connection::Cell_3G;
+ connectionType = Connection::CELL_3G;
}
WebCore::networkStateNotifier().networkTypeChange(connectionType);
}