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

Unified Diff: chrome/browser/translate/translate_manager.cc

Issue 8365033: Use system_request_context in TranslateManager instead of Profile::GetDefaultRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager.cc
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc
index e0c015c5942aff5c4aefa1d1694df850453f2ce3..04c6510076148a0199e0c7078c67bdc1a09da615 100644
--- a/chrome/browser/translate/translate_manager.cc
+++ b/chrome/browser/translate/translate_manager.cc
@@ -753,7 +753,7 @@ void TranslateManager::FetchLanguageListFromTranslateServer(
language_list_request_pending_.reset(content::URLFetcher::Create(
1, GURL(kLanguageListFetchURL), content::URLFetcher::GET, this));
language_list_request_pending_->SetRequestContext(
- Profile::Deprecated::GetDefaultRequestContext());
+ g_browser_process->system_request_context());
language_list_request_pending_->SetMaxRetries(kMaxRetryLanguageListFetch);
language_list_request_pending_->Start();
}
@@ -770,7 +770,7 @@ void TranslateManager::RequestTranslateScript() {
translate_script_request_pending_.reset(content::URLFetcher::Create(
0, GURL(kTranslateScriptURL), content::URLFetcher::GET, this));
translate_script_request_pending_->SetRequestContext(
- Profile::Deprecated::GetDefaultRequestContext());
+ g_browser_process->system_request_context());
translate_script_request_pending_->SetExtraRequestHeaders(
kTranslateScriptHeader);
translate_script_request_pending_->Start();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698