Commit e460a4dc authored by wittman@chromium.org's avatar wittman@chromium.org

Close Views collected cookies dialog on interstitial WebUI

Configure the collected cookies dialog to be closed when interstital
WebUI is displayed (e.g. for SSL warnings prior to page load).

BUG=240575
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221792 0039d316-1c4b-4281-b951-d872f2087c98
parent 94fc9528
...@@ -219,6 +219,8 @@ CollectedCookiesViews::CollectedCookiesViews(content::WebContents* web_contents) ...@@ -219,6 +219,8 @@ CollectedCookiesViews::CollectedCookiesViews(content::WebContents* web_contents)
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);
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
......
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