diff options
Diffstat (limited to 'chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc')
| -rw-r--r-- | chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc b/chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc index 51000d2..112d012 100644 --- a/chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc +++ b/chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc @@ -317,11 +317,12 @@ void KeyboardOverlayHandler::GetLabelMap(const ListValue* args) { KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents) : HtmlDialogUI(contents) { + Profile* profile = Profile::FromBrowserContext(contents->browser_context()); KeyboardOverlayHandler* handler = - new KeyboardOverlayHandler(contents->profile()); + new KeyboardOverlayHandler(profile); AddMessageHandler((handler)->Attach(this)); KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource(); // Set up the chrome://keyboardoverlay/ source. - contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); + profile->GetChromeURLDataManager()->AddDataSource(html_source); } |
