Index: chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc |
=================================================================== |
--- chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc (revision 117926) |
+++ chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc (working copy) |
@@ -19,9 +19,9 @@ |
#include "chrome/common/jstemplate_builder.h" |
#include "chrome/common/pref_names.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.h" |
#include "content/public/browser/web_ui_message_handler.h" |
#include "grit/browser_resources.h" |
#include "grit/generated_resources.h" |
@@ -308,10 +308,9 @@ |
// |
//////////////////////////////////////////////////////////////////////////////// |
-KeyboardOverlayUI::KeyboardOverlayUI(WebUI* web_ui) |
+KeyboardOverlayUI::KeyboardOverlayUI(content::WebUI* web_ui) |
: HtmlDialogUI(web_ui) { |
- Profile* profile = Profile::FromBrowserContext( |
- web_ui->web_contents()->GetBrowserContext()); |
+ Profile* profile = Profile::FromWebUI(web_ui); |
KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(profile); |
web_ui->AddMessageHandler(handler); |