Index: chrome/browser/ui/webui/devtools_ui.cc |
=================================================================== |
--- chrome/browser/ui/webui/devtools_ui.cc (revision 117871) |
+++ chrome/browser/ui/webui/devtools_ui.cc (working copy) |
@@ -13,6 +13,7 @@ |
#include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/renderer_host/render_view_host.h" |
+#include "content/browser/webui/web_ui.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/devtools_client_host.h" |
#include "content/public/browser/web_contents.h" |
@@ -100,9 +101,10 @@ |
} |
} |
-DevToolsUI::DevToolsUI(WebContents* contents) : WebUI(contents, this) { |
+DevToolsUI::DevToolsUI(WebUI* web_ui) : WebUIController(web_ui) { |
DevToolsDataSource* data_source = new DevToolsDataSource(); |
- Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |
+ Profile* profile = Profile::FromBrowserContext( |
+ web_ui->web_contents()->GetBrowserContext()); |
profile->GetChromeURLDataManager()->AddDataSource(data_source); |
} |