Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: chrome/browser/ui/views/certificate_selector.cc

Issue 1207313003: Allow cert-popup for WebView guests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/certificate_selector.cc
diff --git a/chrome/browser/ui/views/certificate_selector.cc b/chrome/browser/ui/views/certificate_selector.cc
index d2d5afb7efdd76ad6fb720c4fa4def035e56206c..ead471ba0e7705aca379cb8940497d515a578cc8 100644
--- a/chrome/browser/ui/views/certificate_selector.cc
+++ b/chrome/browser/ui/views/certificate_selector.cc
@@ -87,6 +87,11 @@ CertificateSelector::~CertificateSelector() {
table_->SetModel(nullptr);
}
+// Static.
+bool CertificateSelector::CanShow(content::WebContents* web_contents) {
+ return constrained_window::HasTopLevelDialogManager(web_contents);
+}
+
void CertificateSelector::Show() {
constrained_window::ShowWebModalDialogViews(this, web_contents_);
« no previous file with comments | « chrome/browser/ui/views/certificate_selector.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698