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

Unified Diff: chrome/browser/ui/constrained_window_tab_helper.cc

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/constrained_window.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/constrained_window_tab_helper.cc
diff --git a/chrome/browser/ui/constrained_window_tab_helper.cc b/chrome/browser/ui/constrained_window_tab_helper.cc
index 3d8d103e002ae3b4024d11b053ad456fe086380c..cdb6478dbf5f04c73f78368de93600d0b5631abf 100644
--- a/chrome/browser/ui/constrained_window_tab_helper.cc
+++ b/chrome/browser/ui/constrained_window_tab_helper.cc
@@ -32,7 +32,7 @@ void ConstrainedWindowTabHelper::AddConstrainedDialog(
ConstrainedWindow* window) {
child_windows_.push_back(window);
- if (child_windows_.size() == 1) {
+ if (child_windows_.size() == 1 && window->GetCanShowConstrainedWindow()) {
window->ShowConstrainedWindow();
BlockTabContent(true);
}
« no previous file with comments | « chrome/browser/ui/constrained_window.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698