summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/extension_view_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/extension_view_gtk.cc')
-rw-r--r--chrome/browser/gtk/extension_view_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/extension_view_gtk.cc b/chrome/browser/gtk/extension_view_gtk.cc
index 2f3d48d..55f7883 100644
--- a/chrome/browser/gtk/extension_view_gtk.cc
+++ b/chrome/browser/gtk/extension_view_gtk.cc
@@ -49,7 +49,7 @@ void ExtensionViewGtk::CreateWidgetHostView() {
}
void ExtensionViewGtk::RenderViewCreated() {
- if (!pending_background_.empty()) {
+ if (!pending_background_.empty() && render_view_host()->view()) {
render_widget_host_view_->SetBackground(pending_background_);
pending_background_.reset();
}