Commit 1371a26a authored by wittman@chromium.org's avatar wittman@chromium.org

Close Views constrained web dialog on interstitial WebUI

Configure Views constrained web dialogs to be closed when interstital
WebUI is displayed (e.g. for SSL warnings prior to page load). Affects
these dialogs:

 * print preview
 * SSL certificate viewer (Chrome OS only)
 * profile sign-in confirmation dialog

BUG=240575
R=sky@chromium.org, thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221810 0039d316-1c4b-4281-b951-d872f2087c98
parent 2862eebc
...@@ -235,6 +235,8 @@ ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( ...@@ -235,6 +235,8 @@ ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
web_contents->GetView()->GetNativeView(), web_contents->GetView()->GetNativeView(),
modal_delegate->GetWebContentsModalDialogHost()->GetHostView()); modal_delegate->GetWebContentsModalDialogHost()->GetHostView());
web_contents_modal_dialog_manager->ShowDialog(window->GetNativeView()); web_contents_modal_dialog_manager->ShowDialog(window->GetNativeView());
web_contents_modal_dialog_manager->SetCloseOnInterstitialWebUI(
window->GetNativeView(), true);
constrained_delegate->SetWindow(window); constrained_delegate->SetWindow(window);
return constrained_delegate; return constrained_delegate;
} }
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