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

Unified Diff: chrome/browser/net/resolve_proxy_msg_helper.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/net/chrome_url_request_context.cc ('k') | chrome/browser/net/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/resolve_proxy_msg_helper.cc
===================================================================
--- chrome/browser/net/resolve_proxy_msg_helper.cc (revision 29872)
+++ chrome/browser/net/resolve_proxy_msg_helper.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/profile.h"
+#include "chrome/browser/net/url_request_context_getter.h"
#include "net/base/net_errors.h"
#include "net/url_request/url_request_context.h"
@@ -80,12 +81,13 @@
}
// If there is no default request context (say during shut down).
- URLRequestContext* context = Profile::GetDefaultRequestContext();
- if (!context)
+ URLRequestContextGetter* context_getter =
+ Profile::GetDefaultRequestContext();
+ if (!context_getter)
return false;
// Otherwise use the browser's global proxy service.
- *out = context->proxy_service();
+ *out = context_getter->GetURLRequestContext()->proxy_service();
return true;
}
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698