Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2138)

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 739033003: Support content scheme uri for Chrome on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing siever's comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698