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

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

Issue 8136027: Print Preview: Make print preview tab modal. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, more fixes Created 9 years, 2 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/constrained_window_tab_helper.cc
===================================================================
--- chrome/browser/ui/constrained_window_tab_helper.cc (revision 105275)
+++ chrome/browser/ui/constrained_window_tab_helper.cc (working copy)
@@ -83,6 +83,11 @@
contents->render_view_host()->set_ignore_input_events(blocked);
if (delegate_)
delegate_->SetTabContentBlocked(wrapper_, blocked);
+
+ if (!contents->is_being_destroyed() && contents->delegate()) {
+ // Force the printing state to update.
+ contents->SetContentRestrictions(contents->content_restrictions());
+ }
}
void ConstrainedWindowTabHelper::DidNavigateMainFramePostCommit(

Powered by Google App Engine
This is Rietveld 408576698