Title: [94583] trunk/Source/WebKit2
Revision
94583
Author
[email protected]
Date
2011-09-06 11:26:27 -0700 (Tue, 06 Sep 2011)

Log Message

[GTK] Use soup_session_add_feature_by_type uniformly in WebKit2.
https://bugs.webkit.org/show_bug.cgi?id=67593

Patch by Wajahat Siddiqui <[email protected]> on 2011-09-06
Reviewed by Martin Robinson.

Using soup_session_add_feature_by_type for adding all soup features
instead of adding using GRefPtr.

* WebProcess/gtk/WebProcessMainGtk.cpp:
(WebKit::WebProcessMainGtk):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (94582 => 94583)


--- trunk/Source/WebKit2/ChangeLog	2011-09-06 18:19:55 UTC (rev 94582)
+++ trunk/Source/WebKit2/ChangeLog	2011-09-06 18:26:27 UTC (rev 94583)
@@ -1,3 +1,16 @@
+2011-09-06  Wajahat Siddiqui  <[email protected]>
+
+        [GTK] Use soup_session_add_feature_by_type uniformly in WebKit2.
+        https://bugs.webkit.org/show_bug.cgi?id=67593
+
+        Reviewed by Martin Robinson.
+
+        Using soup_session_add_feature_by_type for adding all soup features 
+        instead of adding using GRefPtr.
+
+        * WebProcess/gtk/WebProcessMainGtk.cpp:
+        (WebKit::WebProcessMainGtk):
+
 2011-09-05  Balazs Kelemen  <[email protected]>
 
         [Qt][WK2] Add pixel test support

Modified: trunk/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp (94582 => 94583)


--- trunk/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp	2011-09-06 18:19:55 UTC (rev 94582)
+++ trunk/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp	2011-09-06 18:26:27 UTC (rev 94583)
@@ -58,14 +58,10 @@
     RunLoop::initializeMainRunLoop();
     SoupSession* session = WebCore::ResourceHandle::defaultSession();
 
-    GRefPtr<SoupSessionFeature> sniffer = adoptGRef(static_cast<SoupSessionFeature*>(g_object_new(SOUP_TYPE_CONTENT_SNIFFER, NULL)));
-    soup_session_add_feature(session, sniffer.get());
-
+    soup_session_add_feature_by_type(session, SOUP_TYPE_CONTENT_SNIFFER);
     soup_session_add_feature_by_type(session, SOUP_TYPE_CONTENT_DECODER);
+    soup_session_add_feature_by_type(session, WEB_TYPE_AUTH_DIALOG);
 
-    GRefPtr<SoupSessionFeature> authDialog = adoptGRef(static_cast<SoupSessionFeature*>(g_object_new(WEB_TYPE_AUTH_DIALOG, NULL)));
-    soup_session_add_feature(session, authDialog.get());
-
     int socket = atoi(argv[1]);
     WebProcess::shared().initialize(socket, RunLoop::main());
     RunLoop::run();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to