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

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

Issue 1247004: Revert 42474 - Make repost form warning tabmodal on Gtk.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 42478)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -1091,10 +1091,8 @@
bool removed_topmost_window = it == child_windows_.begin();
if (it != child_windows_.end())
child_windows_.erase(it);
- if (child_windows_.size() > 0) {
- if (removed_topmost_window) {
- child_windows_[0]->ShowConstrainedWindow();
- }
+ if (removed_topmost_window && child_windows_.size() > 0) {
+ 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