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

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

Issue 2785493003: Disable SDCH by Default (Closed)
Patch Set: Added todo for removing sdch_view.js. Created 3 years, 9 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
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 12e071c20bb8a1e3eca91e225567a795806a1f59..d35e4041c9aa41259d23065be1070682a8f1a638 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));
- 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);

Powered by Google App Engine
This is Rietveld 408576698