diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 04:12:23 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 04:12:23 +0000 |
commit | 0dbb1ebc5db4d16057884de523d8af80eaf017db (patch) | |
tree | 549c8e9bc4ae27a9f88741db0dc17271bc38dc1d /chrome/browser/views/frame/browser_view.cc | |
parent | 3e710bc9772b51e620cf161197d94b356f297db9 (diff) | |
download | chromium_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.cc | 10 |
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) { |