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

Unified Diff: content/browser/debugger/devtools_http_protocol_handler.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/debugger/devtools_http_protocol_handler.cc
diff --git a/content/browser/debugger/devtools_http_protocol_handler.cc b/content/browser/debugger/devtools_http_protocol_handler.cc
index 3e78e4ba95c3a66b6c154040db47f4d3749f19a6..dc248999c5f106eebce6caca04cab18be6d53f10 100644
--- a/content/browser/debugger/devtools_http_protocol_handler.cc
+++ b/content/browser/debugger/devtools_http_protocol_handler.cc
@@ -138,7 +138,7 @@ void DevToolsHttpProtocolHandler::OnHttpRequest(
}
// Proxy static files from chrome-devtools://devtools/*.
- if (!Profile::GetDefaultRequestContext()) {
+ if (!Profile::Deprecated::GetDefaultRequestContext()) {
server_->Send404(connection_id);
return;
}
@@ -167,7 +167,7 @@ void DevToolsHttpProtocolHandler::OnHttpRequest(
DevToolsUI::RegisterDevToolsDataSource();
Bind(request, connection_id);
request->set_context(
- Profile::GetDefaultRequestContext()->GetURLRequestContext());
+ Profile::Deprecated::GetDefaultRequestContext()->GetURLRequestContext());
request->Start();
}

Powered by Google App Engine
This is Rietveld 408576698