[M40 Merge] Removing file:// protocol handler specific for WRT.
authorPiotr An Nguyen <p.annguyen@samsung.com>
Mon, 11 May 2015 16:21:08 +0000 (18:21 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
This is no longer needed on Browser Process side after architectural changes.

Original gerrit: http://165.213.202.130/gerrit/#/c/79548/

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=10969
Reviewed by: Antonio Gomes, Daniel Waślicki, Hyunhak Kim, Michal Roj, Ming Jin, Piotr Tworek

Change-Id: Ie6e1d71396abbc33f019b6d5af56a38ffcc845ee
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
tizen_src/ewk/efl_integration/url_request_context_getter_efl.cc

index 54aefef..5730bbd 100644 (file)
@@ -33,8 +33,6 @@
 #include "network_delegate_efl.h"
 #include "http_user_agent_settings_efl.h"
 
-#include "wrt/wrt_file_protocol_handler.h"
-
 namespace content {
 
 namespace {
@@ -208,12 +206,13 @@ net::URLRequestContext* URLRequestContextGetterEfl::GetURLRequestContext() {
     bool set_protocol = job_factory->SetProtocolHandler(
         url::kDataScheme, new net::DataProtocolHandler);
     DCHECK(set_protocol);
-    // TODO(z.kostrzewa) When WrtWidgetHost::Get()->InWrt() will be able to
-    // discover early enough that it is a WRT-originated launch then attach
-    // GetWrtFileProtocolHandler() for WRT and FileProtocolHandler otherwise
+
     set_protocol = job_factory->SetProtocolHandler(
         url::kFileScheme,
-        GetWrtFileProtocolHandler());
+        new net::FileProtocolHandler(
+          BrowserThread::GetBlockingPool()->
+            GetTaskRunnerWithShutdownBehavior(
+              base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)));
     DCHECK(set_protocol);
 
     // Set up interceptors in the reverse order.