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

Unified Diff: chrome/browser/spellchecker.cc

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 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 | « chrome/browser/spellchecker.h ('k') | chrome/browser/sync/glue/http_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker.cc
===================================================================
--- chrome/browser/spellchecker.cc (revision 29872)
+++ chrome/browser/spellchecker.cc (working copy)
@@ -463,7 +463,7 @@
SpellChecker::SpellChecker(const FilePath& dict_dir,
const std::string& language,
- URLRequestContext* request_context,
+ URLRequestContextGetter* request_context_getter,
const FilePath& custom_dictionary_file_name)
: given_dictionary_directory_(dict_dir),
custom_dictionary_file_name_(custom_dictionary_file_name),
@@ -472,7 +472,7 @@
worker_loop_(NULL),
tried_to_download_dictionary_file_(false),
file_loop_(NULL),
- url_request_context_(request_context),
+ request_context_getter_(request_context_getter),
obtaining_dictionary_(false),
auto_spell_correct_turned_on_(false),
is_using_platform_spelling_engine_(false),
@@ -524,7 +524,7 @@
GURL url = GURL(std::string(kDownloadServerUrl) + WideToUTF8(
l10n_util::ToLower(bdic_file_name_.ToWStringHack())));
fetcher_.reset(new URLFetcher(url, URLFetcher::GET, this));
- fetcher_->set_request_context(url_request_context_);
+ fetcher_->set_request_context(request_context_getter_);
obtaining_dictionary_ = true;
fetcher_->Start();
}
@@ -654,7 +654,7 @@
void SpellChecker::DoDictionaryDownload() {
// Download the dictionary file.
- if (file_loop_ && url_request_context_) {
+ if (file_loop_ && request_context_getter_) {
if (!tried_to_download_dictionary_file_) {
FilePath dictionary_file_name_app = GetVersionedFileName(language_,
given_dictionary_directory_);
« no previous file with comments | « chrome/browser/spellchecker.h ('k') | chrome/browser/sync/glue/http_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698