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

Unified Diff: chrome/browser/download/download_manager.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/download/download_manager.h ('k') | chrome/browser/download/save_file_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.cc
===================================================================
--- chrome/browser/download/download_manager.cc (revision 29872)
+++ chrome/browser/download/download_manager.cc (working copy)
@@ -23,6 +23,7 @@
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/extensions_service.h"
+#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_view_host.h"
@@ -475,7 +476,7 @@
shutdown_needed_ = true;
profile_ = profile;
- request_context_ = profile_->GetRequestContext();
+ request_context_getter_ = profile_->GetRequestContext();
// 'incognito mode' will have access to past downloads, but we won't store
// information about new downloads while in that mode.
@@ -1119,12 +1120,12 @@
const std::string& referrer_charset,
TabContents* tab_contents) {
DCHECK(tab_contents);
- request_context_->set_referrer_charset(referrer_charset);
file_manager_->DownloadUrl(url,
referrer,
+ referrer_charset,
tab_contents->process()->id(),
tab_contents->render_view_host()->routing_id(),
- request_context_.get());
+ request_context_getter_);
}
void DownloadManager::GenerateExtension(
« no previous file with comments | « chrome/browser/download/download_manager.h ('k') | chrome/browser/download/save_file_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698