Index: chrome/browser/ui/webui/chromeos/system_info_ui.cc |
=================================================================== |
--- chrome/browser/ui/webui/chromeos/system_info_ui.cc (revision 117871) |
+++ chrome/browser/ui/webui/chromeos/system_info_ui.cc (working copy) |
@@ -22,6 +22,7 @@ |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/jstemplate_builder.h" |
#include "chrome/common/url_constants.h" |
+#include "content/browser/webui/web_ui.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_ui_message_handler.h" |
@@ -172,12 +173,13 @@ |
// |
//////////////////////////////////////////////////////////////////////////////// |
-SystemInfoUI::SystemInfoUI(WebContents* contents) : WebUI(contents, this) { |
+SystemInfoUI::SystemInfoUI(WebUI* web_ui) : WebUIController(web_ui) { |
SystemInfoHandler* handler = new SystemInfoHandler(); |
- AddMessageHandler(handler); |
+ web_ui->AddMessageHandler(handler); |
SystemInfoUIHTMLSource* html_source = new SystemInfoUIHTMLSource(); |
// Set up the chrome://system/ source. |
- Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |
+ Profile* profile = Profile::FromBrowserContext( |
+ web_ui->web_contents()->GetBrowserContext()); |
profile->GetChromeURLDataManager()->AddDataSource(html_source); |
} |