Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 72e8d9222036d6f035993e5cb8fcda8be3ddcf78..834babafc974b90fd94d75a0a29e97235dc09219 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -112,6 +112,7 @@ |
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h" |
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h" |
+#include "content/public/browser/android/content_protocol_handler.h" |
#endif // defined(OS_ANDROID) |
#if defined(OS_CHROMEOS) |
@@ -1152,6 +1153,14 @@ scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults( |
DCHECK(set_protocol); |
} |
#endif // defined(OS_CHROMEOS) |
+#if defined(OS_ANDROID) |
+ set_protocol = job_factory->SetProtocolHandler( |
+ url::kContentScheme, |
+ new content::ContentProtocolHandler::Create( |
+ content::BrowserThread::GetBlockingPool()-> |
+ GetTaskRunnerWithShutdownBehavior( |
+ base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); |
+#endif |
job_factory->SetProtocolHandler( |
url::kAboutScheme, new chrome_browser_net::AboutProtocolHandler()); |