Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7330)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 7492005: Fixes crash on startup with compact nav. A recent change meant it's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 656ac73160079d3937de6af278e5fadf59cf4406..f00222d8b804983a62ed3b701837e605ff521571 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1371,7 +1371,7 @@ BookmarkBarView* BrowserView::GetBookmarkBarView() const {
}
LocationBarView* BrowserView::GetLocationBarView() const {
- if (UseCompactNavigationBar()) {
+ if (UseCompactNavigationBar() && compact_location_bar_view_host_.get()) {
return compact_location_bar_view_host_->GetCompactLocationBarView()->
location_bar_view();
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698