| 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 5163819b39c3c4d6327bf7478ba01628ef51c59c..d546f48c1e819cd8dfe71c80443bfb3b2bff5e14 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -26,6 +26,7 @@
|
| #include "chrome/browser/net/cookie_store_util.h"
|
| #include "chrome/browser/net/http_server_properties_manager.h"
|
| #include "chrome/browser/net/predictor.h"
|
| +#include "chrome/browser/net/sdch_dictionary_fetcher.h"
|
| #include "chrome/browser/net/sqlite_server_bound_cert_store.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/chrome_constants.h"
|
| @@ -41,10 +42,12 @@
|
| #include "extensions/browser/extension_protocols.h"
|
| #include "extensions/common/constants.h"
|
| #include "net/base/cache_type.h"
|
| +#include "net/base/sdch_manager.h"
|
| #include "net/ftp/ftp_network_layer.h"
|
| #include "net/http/http_cache.h"
|
| #include "net/ssl/server_bound_cert_service.h"
|
| #include "net/url_request/protocol_intercept_job_factory.h"
|
| +#include "net/url_request/url_request_context_getter.h"
|
| #include "net/url_request/url_request_job_factory_impl.h"
|
| #include "webkit/browser/quota/special_storage_policy.h"
|
|
|
| @@ -495,6 +498,18 @@ void ProfileImplIOData::InitializeInternal(
|
| InitializeExtensionsRequestContext(profile_params);
|
| #endif
|
|
|
| + // Setup the SDCHManager for this profile.
|
| + sdch_manager_.reset(new net::SdchManager);
|
| + sdch_manager_->set_sdch_fetcher(
|
| + new SdchDictionaryFetcher(
|
| + sdch_manager_.get(),
|
| + // SdchDictionaryFetcher takes a reference to the Getter, and
|
| + // hence implicitly takes ownership.
|
| + new net::TrivialURLRequestContextGetter(
|
| + main_context,
|
| + content::BrowserThread::GetMessageLoopProxyForThread(
|
| + content::BrowserThread::IO))));
|
| +
|
| // 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);
|
|
|