Index: chrome/browser/browser.cc |
=================================================================== |
--- chrome/browser/browser.cc (revision 21184) |
+++ chrome/browser/browser.cc (working copy) |
@@ -1875,7 +1875,8 @@ |
} |
void Browser::UpdateDownloadShelfVisibility(bool visible) { |
- GetStatusBubble()->UpdateDownloadShelfVisibility(visible); |
+ if (GetStatusBubble()) |
+ GetStatusBubble()->UpdateDownloadShelfVisibility(visible); |
} |
void Browser::ContentsZoomChange(bool zoom_in) { |
@@ -2410,7 +2411,7 @@ |
// Browser, Getters for UI (private): |
StatusBubble* Browser::GetStatusBubble() { |
- return window_->GetStatusBubble(); |
+ return window_ ? window_->GetStatusBubble() : NULL; |
} |
/////////////////////////////////////////////////////////////////////////////// |