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

Unified Diff: chrome/browser/ui/webui/devtools_ui.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: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index afe8e3201c1a7e86a8dbeba123cb778163a299eb..d340a72f9e61a845a62b2c240d1697f5c85ab2fb 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -91,7 +91,8 @@ void DevToolsUI::RegisterDevToolsDataSource() {
if (!registered) {
DevToolsDataSource* data_source = new DevToolsDataSource();
ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>(
- Profile::GetDefaultRequestContext()->GetURLRequestContext());
+ Profile::Deprecated::GetDefaultRequestContext()->
+ GetURLRequestContext());
context->chrome_url_data_manager_backend()->AddDataSource(data_source);
registered = true;
}

Powered by Google App Engine
This is Rietveld 408576698