| 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 4d12e68fd949bf3f1b115a9909fc5686a1540c8d..db605ac271bf7341374ae3efaf21888869b2c13a 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -517,15 +517,15 @@ void ProfileImplIOData::InitializeInternal(
|
|
|
| // Setup the SDCHManager for this profile.
|
| sdch_manager_.reset(new net::SdchManager);
|
| - sdch_manager_->set_sdch_fetcher(
|
| - new net::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))));
|
| + scoped_ptr<net::SdchFetcher> fetcher(new net::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))));
|
| + sdch_manager_->set_sdch_fetcher(fetcher.Pass());
|
| main_context->set_sdch_manager(sdch_manager_.get());
|
|
|
| // Create a media request context based on the main context, but using a
|
|
|