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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 1207313003: Allow cert-popup for WebView guests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index d1945be97a86dc5fc214a8f77426e6823344af9e..686cebbd5effdff2c194bdf71e9006d9f2355697 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1537,6 +1537,15 @@ views::View* ProfileChooserView::CreateGaiaSigninView(
views::WebView* web_view = new views::WebView(profile);
web_view->LoadInitialURL(url);
web_view->GetWebContents()->SetDelegate(this);
+
+ // TODO(davidben): When crbug.com/456255 is resolved, presumably we won't
+ // need a popup manager and the following code can be removed.
+ // It probably makes more sense for a cert-selection dialog in the signin
+ // bubble to be browser-modal, and not bubble-modal.
Ryan Sleevi 2015/07/07 12:27:19 I'm not sure what you mean by browser-modal here -
+ if (!popup_manager_)
+ popup_manager_.reset(new web_modal::PopupManager(nullptr));
+ popup_manager_->RegisterWith(web_view->GetWebContents());
+
web_view->SetPreferredSize(
gfx::Size(kFixedGaiaViewWidth, kFixedGaiaViewHeight));
content::RenderWidgetHostView* rwhv =
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.h ('k') | chrome/browser/ui/views/ssl_client_certificate_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698