summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_view.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 04:12:23 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 04:12:23 +0000
commit0dbb1ebc5db4d16057884de523d8af80eaf017db (patch)
tree549c8e9bc4ae27a9f88741db0dc17271bc38dc1d /chrome/browser/views/frame/browser_view.cc
parent3e710bc9772b51e620cf161197d94b356f297db9 (diff)
downloadchromium_src-0dbb1ebc5db4d16057884de523d8af80eaf017db.zip
chromium_src-0dbb1ebc5db4d16057884de523d8af80eaf017db.tar.gz
chromium_src-0dbb1ebc5db4d16057884de523d8af80eaf017db.tar.bz2
Adds some debugging code in hopes of figuring out who is removing the
bookmark bar. BUG=7857 TEST=none Review URL: http://codereview.chromium.org/28100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view.cc')
-rw-r--r--chrome/browser/views/frame/browser_view.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index be0020f..7836e7f 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -195,7 +195,8 @@ BrowserView::BrowserView(Browser* browser)
personalization_enabled_(false),
personalization_(NULL),
#endif
- forwarding_to_tab_strip_(false) {
+ forwarding_to_tab_strip_(false),
+ is_removing_bookmark_bar_(false) {
InitClass();
browser_->tabstrip_model()->AddObserver(this);
}
@@ -1423,8 +1424,11 @@ bool BrowserView::MaybeShowBookmarkBar(TabContents* contents) {
bookmark_bar_view_->SetPageNavigator(contents);
new_bookmark_bar_view = bookmark_bar_view_.get();
}
- return UpdateChildViewAndLayout(new_bookmark_bar_view,
- &old_bookmark_bar_view);
+ is_removing_bookmark_bar_ = true;
+ bool result = UpdateChildViewAndLayout(new_bookmark_bar_view,
+ &old_bookmark_bar_view);
+ is_removing_bookmark_bar_ = false;
+ return result;
}
bool BrowserView::MaybeShowInfoBar(TabContents* contents) {