Experimental change to fix perf bot. Full history:
Experimental change to fix perf bot.
Full history:

------------------------------
1st CL intended to fix a problem with a failing pyauto test on ChromeOS.
http://codereview.chromium.org/1461001
browser_view.cc:
bool BrowserView::IsBookmarkBarVisible()
  active_bookmark_bar_->GetPreferredSize().height() != 0); -->
  browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);
----------
That broke NTP bookmark bar.  Fixed like this:
http://codereview.chromium.org/1594009
browser_view_layout.cc:
int BrowserViewLayout::LayoutBookmarkBar(int top) {
   if (!browser_view_->IsBookmarkBarVisible()) { -->

   if (!browser_view_->IsBookmarkBarVisible() &&
   !active_bookmark_bar_->OnNewTabPage()) {
----------
Caused perf regression:
Reverted with
http://codereview.chromium.org/1539017
----------
Fixed a different way
http://codereview.chromium.org/1540015
browser_view.cc:
   browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);   ->
   active_bookmark_bar_->GetPreferredSize().height() != 0);
(revert 1st CL so test broken again)
automation_provider.cc:
   *visible = browser->window()->IsBookmarkBarVisible(); -->
    *visible = browser->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);
----------
ALSO a perf regression (duh; is same path for automation provider).
So made it ChromeOS only:
http://codereview.chromium.org/1602008
#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
...
#endif
----------
But didn't fix perf????
Making that #if 0 to see if XP perf fixes.
It'll break pyauto but too bad for now I guess.





Review URL: http://codereview.chromium.org/1606013

git-svn-id: http://src.chromium.org/svn/trunk/src@43789 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 9437169929849103408ba10486187f141bc04d7a
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser