summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 20:35:39 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 20:35:39 +0000
commit734911ed1bff482b2bd88a3c073f98b8a241f450 (patch)
tree54389048bbcd0f26d3f5c653d0d929c50332129a /chrome/browser/gtk
parentfb91fceeafe3e220e3dffd1bf5398ee6718f3ed4 (diff)
downloadchromium_src-734911ed1bff482b2bd88a3c073f98b8a241f450.zip
chromium_src-734911ed1bff482b2bd88a3c073f98b8a241f450.tar.gz
chromium_src-734911ed1bff482b2bd88a3c073f98b8a241f450.tar.bz2
GTK: Don't fail on startup with debug build.
I thought the check would never fail, but I found out how to trigger it, so it turns out to be necessary after all. TBR=derat Review URL: http://codereview.chromium.org/421011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/infobar_gtk.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc
index 1468439..6562bbc 100644
--- a/chrome/browser/gtk/infobar_gtk.cc
+++ b/chrome/browser/gtk/infobar_gtk.cc
@@ -116,12 +116,14 @@ GtkWidget* InfoBar::widget() {
void InfoBar::AnimateOpen() {
slide_widget_->Open();
- gdk_window_lower(border_bin_->window);
+ if (border_bin_->window)
+ gdk_window_lower(border_bin_->window);
}
void InfoBar::Open() {
slide_widget_->OpenWithoutAnimation();
- gdk_window_lower(border_bin_->window);
+ if (border_bin_->window)
+ gdk_window_lower(border_bin_->window);
}
void InfoBar::AnimateClose() {