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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 660434: Make repost form warning tab-modal on Gtk. (Closed)
Patch Set: Fixed a small bug when two tabmodal dialogs were shown. Created 10 years, 9 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/gtk/repost_form_warning_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 464531507a25d2ac7d8d71ec16eb451a5494f883..3c36786e358096f28d93c375200b676936a4921b 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1073,8 +1073,10 @@ void TabContents::WillClose(ConstrainedWindow* window) {
bool removed_topmost_window = it == child_windows_.begin();
if (it != child_windows_.end())
child_windows_.erase(it);
- if (removed_topmost_window && child_windows_.size() > 0) {
- child_windows_[0]->ShowConstrainedWindow();
+ if (child_windows_.size() > 0) {
+ if (removed_topmost_window) {
+ child_windows_[0]->ShowConstrainedWindow();
+ }
BlockTabContent(true);
} else {
BlockTabContent(false);
« no previous file with comments | « chrome/browser/gtk/repost_form_warning_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698