diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/tab_contents/tab_contents.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index 6ed1c38..71a7644 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -800,7 +800,9 @@ void TabContents::BlockTabContent(bool blocked) { SkColor greyish = SkColorSetARGB(178, 0, 0, 0); if (rwhv) rwhv->SetVisuallyDeemphasized(blocked ? &greyish : NULL, false); - render_view_host()->set_ignore_input_events(blocked); + // RenderViewHost may be NULL during shutdown. + if (render_view_host()) + render_view_host()->set_ignore_input_events(blocked); if (delegate_) delegate_->SetTabContentBlocked(this, blocked); } |