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

Unified Diff: content/browser/resolve_proxy_msg_helper.cc

Issue 7438002: Deprecate Profile::GetDefaultRequestContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix other references. Created 9 years, 5 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
Index: content/browser/resolve_proxy_msg_helper.cc
diff --git a/content/browser/resolve_proxy_msg_helper.cc b/content/browser/resolve_proxy_msg_helper.cc
index edacad9aa78e2473076a4e9d9e5dc51b1fa894e9..80ab29b13702f64af7c2f4e1aee025751a7eaba5 100644
--- a/content/browser/resolve_proxy_msg_helper.cc
+++ b/content/browser/resolve_proxy_msg_helper.cc
@@ -91,7 +91,7 @@ bool ResolveProxyMsgHelper::GetProxyService(net::ProxyService** out) const {
// If there is no default request context (say during shut down).
net::URLRequestContextGetter* context_getter =
- Profile::GetDefaultRequestContext();
+ Profile::Deprecated::GetDefaultRequestContext();
if (!context_getter)
return false;
@@ -104,7 +104,8 @@ ResolveProxyMsgHelper::~ResolveProxyMsgHelper() {
// Clear all pending requests if the ProxyService is still alive (if we have a
// default request context or override).
if (!pending_requests_.empty() &&
- (Profile::GetDefaultRequestContext() || proxy_service_override_)) {
+ (Profile::Deprecated::GetDefaultRequestContext() ||
+ proxy_service_override_)) {
PendingRequest req = pending_requests_.front();
proxy_service_->CancelPacRequest(req.pac_req);
}

Powered by Google App Engine
This is Rietveld 408576698