summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/devtools_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/devtools_ui.cc')
-rw-r--r--chrome/browser/ui/webui/devtools_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index 0d1ae7f..21da8e9 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -101,7 +101,7 @@ void DevToolsUI::RegisterDevToolsDataSource(Profile* profile) {
DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) {
DevToolsDataSource* data_source = new DevToolsDataSource();
- Profile* profile = Profile::FromBrowserContext(contents->browser_context());
+ Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext());
profile->GetChromeURLDataManager()->AddDataSource(data_source);
}