Title: [129864] trunk/Source/WebKit2
Revision
129864
Author
[email protected]
Date
2012-09-28 02:24:47 -0700 (Fri, 28 Sep 2012)

Log Message

[EFL][WK2] NetworkInfo provider is not initialized in Ewk_Context
https://bugs.webkit.org/show_bug.cgi?id=97865

Patch by Christophe Dumez <[email protected]> on 2012-09-28
Reviewed by Kenneth Rohde Christiansen.

Initialize NetworkInfo provider for EFL port in Ewk_Context
with the other providers.

* UIProcess/API/efl/ewk_context.cpp:
(_Ewk_Context):
(_Ewk_Context::_Ewk_Context):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (129863 => 129864)


--- trunk/Source/WebKit2/ChangeLog	2012-09-28 08:56:55 UTC (rev 129863)
+++ trunk/Source/WebKit2/ChangeLog	2012-09-28 09:24:47 UTC (rev 129864)
@@ -1,3 +1,17 @@
+2012-09-28  Christophe Dumez  <[email protected]>
+
+        [EFL][WK2] NetworkInfo provider is not initialized in Ewk_Context
+        https://bugs.webkit.org/show_bug.cgi?id=97865
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Initialize NetworkInfo provider for EFL port in Ewk_Context
+        with the other providers.
+
+        * UIProcess/API/efl/ewk_context.cpp:
+        (_Ewk_Context):
+        (_Ewk_Context::_Ewk_Context):
+
 2012-09-28  Eunmi Lee  <[email protected]>
 
         [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.

Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp (129863 => 129864)


--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp	2012-09-28 08:56:55 UTC (rev 129863)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp	2012-09-28 09:24:47 UTC (rev 129864)
@@ -22,6 +22,7 @@
 #include "ewk_context.h"
 
 #include "BatteryProvider.h"
+#include "NetworkInfoProvider.h"
 #include "VibrationProvider.h"
 #include "WKAPICast.h"
 #include "WKContextSoup.h"
@@ -68,6 +69,9 @@
 #if ENABLE(BATTERY_STATUS)
     RefPtr<BatteryProvider> batteryProvider;
 #endif
+#if ENABLE(NETWORK_INFO)
+    RefPtr<NetworkInfoProvider> networkInfoProvider;
+#endif
 #if ENABLE(VIBRATION)
     RefPtr<VibrationProvider> vibrationProvider;
 #endif
@@ -89,6 +93,11 @@
         batteryProvider = BatteryProvider::create(wkBatteryManager);
 #endif
 
+#if ENABLE(NETWORK_INFO)
+        WKNetworkInfoManagerRef wkNetworkInfoManagerRef = WKContextGetNetworkInfoManager(contextRef.get());
+        networkInfoProvider = NetworkInfoProvider::create(wkNetworkInfoManagerRef);
+#endif
+
 #if ENABLE(VIBRATION)
         WKVibrationRef wkVibrationRef = WKContextGetVibration(contextRef.get());
         vibrationProvider = VibrationProvider::create(wkVibrationRef);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to