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

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

Issue 10880071: Disable FTP on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: After rebasing Created 8 years, 4 months 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
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 973049f1d075091821ce7deb0e46d6a75cec8690..d7ca58340c541d10b5f818cbb6a69948a30cdc60 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -440,9 +440,11 @@ void ProfileImplIOData::LazyInitializeInternal(
main_http_factory_.reset(main_cache);
main_context->set_http_transaction_factory(main_cache);
+#if !defined(DISABLE_FTP_SUPPORT)
ftp_factory_.reset(
new net::FtpNetworkLayer(io_thread_globals->host_resolver.get()));
main_context->set_ftp_transaction_factory(ftp_factory_.get());
+#endif // !defined(DISABLE_FTP_SUPPORT)
main_context->set_chrome_url_data_manager_backend(
chrome_url_data_manager_backend());
@@ -661,10 +663,12 @@ chrome_browser_net::LoadTimeStats* ProfileImplIOData::GetLoadTimeStats(
void ProfileImplIOData::CreateFtpProtocolHandler(
net::URLRequestJobFactory* job_factory,
net::FtpAuthCache* ftp_auth_cache) const {
+#if !defined(DISABLE_FTP_SUPPORT)
job_factory->SetProtocolHandler(
chrome::kFtpScheme,
new net::FtpProtocolHandler(ftp_factory_.get(),
ftp_auth_cache));
+#endif // !defined(DISABLE_FTP_SUPPORT)
}
void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698