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

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

Issue 495523003: Change SDCHDictionaryFetcher to use URLRequest instead of URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up state machine & handled recursion properly. Created 6 years, 3 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 | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | net/base/sdch_dictionary_fetcher.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index 28e0fa7e6c34d1b6c7fa4c33726ae05d3a28977b..f7b715738af0c039a3fda2491a8e29bb24bb30c7 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -276,16 +276,9 @@ void OffTheRecordProfileIOData::InitializeInternal(
// Setup the SDCHManager for this profile.
sdch_manager_.reset(new net::SdchManager);
-
- scoped_refptr<net::URLRequestContextGetter> getter(
- new net::TrivialURLRequestContextGetter(
- main_context,
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO)));
-
sdch_manager_->set_sdch_fetcher(scoped_ptr<net::SdchFetcher>(
- new net::SdchDictionaryFetcher(sdch_manager_.get(), getter)).Pass());
-
+ new net::SdchDictionaryFetcher(sdch_manager_.get(),
+ main_context)).Pass());
main_context->set_sdch_manager(sdch_manager_.get());
#if defined(ENABLE_EXTENSIONS)
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | net/base/sdch_dictionary_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698