Chromium Code Reviews

Unified Diff: chrome/browser/browser.cc

Issue 155706: Fix the URL status bubble overlapping the Mac download shelf (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine