Commit a4be18fc authored by scottmg@chromium.org's avatar scottmg@chromium.org

Enable external protocol dialog on Windows Aura

R=ben@chromium.org
BUG=295499

Review URL: https://codereview.chromium.org/25589002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226387 0039d316-1c4b-4281-b951-d872f2087c98
parent 3d410baa
...@@ -156,13 +156,10 @@ ExternalProtocolDialog::ExternalProtocolDialog(WebContents* web_contents, ...@@ -156,13 +156,10 @@ ExternalProtocolDialog::ExternalProtocolDialog(WebContents* web_contents,
l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT)); l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT));
// Dialog is top level if we don't have a web_contents associated with us. // Dialog is top level if we don't have a web_contents associated with us.
HWND root_hwnd = NULL; gfx::NativeWindow parent_window = NULL;
if (web_contents_) { if (web_contents_)
root_hwnd = GetAncestor(web_contents_->GetView()->GetContentNativeView(), parent_window = web_contents_->GetView()->GetTopLevelNativeWindow();
GA_ROOT); CreateBrowserModalDialogViews(this, parent_window)->Show();
}
CreateBrowserModalDialogViews(this, root_hwnd)->Show();
} }
// static // static
......
...@@ -40,7 +40,7 @@ void ShowAboutIPCDialog() { ...@@ -40,7 +40,7 @@ void ShowAboutIPCDialog() {
} // namespace chrome } // namespace chrome
#if !defined(OS_CHROMEOS) #if !defined(OS_CHROMEOS) && !defined(OS_WIN)
// static // static
void ExternalProtocolHandler::RunExternalProtocolDialog( void ExternalProtocolHandler::RunExternalProtocolDialog(
const GURL& url, int render_process_host_id, int routing_id) { const GURL& url, int render_process_host_id, int routing_id) {
......
...@@ -2746,7 +2746,6 @@ ...@@ -2746,7 +2746,6 @@
['exclude', '^browser/ui/views/about_ipc_dialog.cc'], ['exclude', '^browser/ui/views/about_ipc_dialog.cc'],
['exclude', '^browser/ui/views/app_menu_button_win.cc'], ['exclude', '^browser/ui/views/app_menu_button_win.cc'],
['exclude', '^browser/ui/views/dropdown_bar_host_win.cc'], ['exclude', '^browser/ui/views/dropdown_bar_host_win.cc'],
['exclude', '^browser/ui/views/external_protocol_dialog.cc'],
['exclude', '^browser/ui/views/find_bar_host_win.cc'], ['exclude', '^browser/ui/views/find_bar_host_win.cc'],
['exclude', '^browser/ui/views/frame/browser_frame_win.cc'], ['exclude', '^browser/ui/views/frame/browser_frame_win.cc'],
['exclude', '^browser/ui/views/frame/browser_frame_win.h'], ['exclude', '^browser/ui/views/frame/browser_frame_win.h'],
...@@ -2794,9 +2793,10 @@ ...@@ -2794,9 +2793,10 @@
], ],
}, { }, {
'sources/': [ 'sources/': [
['exclude', '^browser/ui/views/hwnd_util.h'], ['exclude', '^browser/ui/views/external_protocol_dialog.cc'],
['exclude', '^browser/ui/views/frame/glass_browser_frame_view.cc'], ['exclude', '^browser/ui/views/frame/glass_browser_frame_view.cc'],
['exclude', '^browser/ui/views/frame/glass_browser_frame_view.h'], ['exclude', '^browser/ui/views/frame/glass_browser_frame_view.h'],
['exclude', '^browser/ui/views/hwnd_util.h'],
], ],
}], }],
], ],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment