| Index: chrome/browser/ui/views/html_dialog_view.cc
|
| diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc
|
| index a9ce20f40cdc2d3c3836c0f2b42adef8147434ac..6281d7b2f0c140cd6e53cdc0392177813f3a345a 100644
|
| --- a/chrome/browser/ui/views/html_dialog_view.cc
|
| +++ b/chrome/browser/ui/views/html_dialog_view.cc
|
| @@ -29,15 +29,26 @@ class RenderWidgetHost;
|
| namespace browser {
|
|
|
| // Declared in browser_dialogs.h so that others don't need to depend on our .h.
|
| +#if defined(OS_CHROMEOS)
|
| +gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent,
|
| + Profile* profile,
|
| + HtmlDialogUIDelegate* delegate,
|
| + chromeos::BubbleWindowStyle style) {
|
| +#else
|
| gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent,
|
| Profile* profile,
|
| HtmlDialogUIDelegate* delegate) {
|
| +#endif
|
| // It's not always safe to display an html dialog with an off the record
|
| // profile. If the last browser with that profile is closed it will go
|
| // away.
|
| DCHECK(!profile->IsOffTheRecord() || delegate->IsDialogModal());
|
| HtmlDialogView* html_view = new HtmlDialogView(profile, delegate);
|
| +#if defined(OS_CHROMEOS)
|
| + browser::CreateViewsWindow(parent, html_view, style);
|
| +#else
|
| browser::CreateViewsWindow(parent, html_view);
|
| +#endif
|
| html_view->InitDialog();
|
| html_view->GetWidget()->Show();
|
| return html_view->GetWidget()->GetNativeWindow();
|
|
|