Chromium Code Reviews| 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 e468b2cc93162f3ef316b8f018f13e5287a53e37..50b87f5186fabf1be8435cbab8a55a7d25bc56b5 100644 |
| --- a/chrome/browser/profiles/profile_impl_io_data.cc |
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc |
| @@ -30,7 +30,6 @@ |
| #include "chrome/browser/net/http_server_properties_manager_factory.h" |
| #include "chrome/browser/net/predictor.h" |
| #include "chrome/browser/net/quota_policy_channel_id_store.h" |
| -#include "chrome/browser/net/sdch_owner_pref_storage.h" |
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h" |
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h" |
| @@ -61,12 +60,10 @@ |
| #include "extensions/common/constants.h" |
| #include "extensions/features/features.h" |
| #include "net/base/cache_type.h" |
| -#include "net/base/sdch_manager.h" |
| #include "net/cookies/cookie_store.h" |
| #include "net/http/http_cache.h" |
| #include "net/http/http_network_session.h" |
| #include "net/http/http_server_properties_manager.h" |
| -#include "net/sdch/sdch_owner.h" |
| #include "net/ssl/channel_id_service.h" |
| #include "net/url_request/url_request_context_storage.h" |
| #include "net/url_request/url_request_intercepting_job_factory.h" |
| @@ -442,16 +439,6 @@ void ProfileImplIOData::InitializeInternal( |
| ProfileParams* profile_params, |
| content::ProtocolHandlerMap* protocol_handlers, |
| content::URLRequestInterceptorScopedVector request_interceptors) const { |
| - // Set up a persistent store for use by the network stack on the IO thread. |
| - base::FilePath network_json_store_filepath( |
| - profile_path_.Append(chrome::kNetworkPersistentStateFilename)); |
|
xunjieli
2017/02/28 19:38:42
chrome::kNetworkPersistentStateFilename is only us
|
| - network_json_store_ = new JsonPrefStore( |
| - network_json_store_filepath, |
| - JsonPrefStore::GetTaskRunnerForFile(network_json_store_filepath, |
| - BrowserThread::GetBlockingPool()), |
| - std::unique_ptr<PrefFilter>()); |
| - network_json_store_->ReadPrefsAsync(nullptr); |
| - |
| net::URLRequestContext* main_context = main_request_context(); |
| net::URLRequestContextStorage* main_context_storage = |
| main_request_context_storage(); |
| @@ -566,15 +553,6 @@ void ProfileImplIOData::InitializeInternal( |
| InitializeExtensionsRequestContext(profile_params); |
| #endif |
| - // Setup SDCH for this profile. |
| - std::unique_ptr<net::SdchManager> sdch_manager(new net::SdchManager()); |
| - sdch_policy_.reset(new net::SdchOwner(sdch_manager.get(), main_context)); |
| - sdch_policy_->EnablePersistentStorage( |
| - std::unique_ptr<net::SdchOwner::PrefStorage>( |
| - new chrome_browser_net::SdchOwnerPrefStorage( |
| - network_json_store_.get()))); |
| - main_context_storage->set_sdch_manager(std::move(sdch_manager)); |
| - |
| // Create a media request context based on the main context, but using a |
| // media cache. It shares the same job factory as the main context. |
| StoragePartitionDescriptor details(profile_path_, false); |