diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-05 20:59:40 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-05 20:59:40 +0000 |
commit | 7e4cd4e8bec548edf4c93d22a4aa3daee309751e (patch) | |
tree | 7d5326dcba23eec6d055414ece61850570157032 /chrome/browser/automation/automation_provider.cc | |
parent | 32c0554d87e4db5e73ac96c4c3b23a56dd6b7f33 (diff) | |
download | chromium_src-7e4cd4e8bec548edf4c93d22a4aa3daee309751e.zip chromium_src-7e4cd4e8bec548edf4c93d22a4aa3daee309751e.tar.gz chromium_src-7e4cd4e8bec548edf4c93d22a4aa3daee309751e.tar.bz2 |
Fix perf regression (again)
Review URL: http://codereview.chromium.org/1602008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index aac48f9..cc4ea58 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -1326,8 +1326,12 @@ void AutomationProvider::GetBookmarkBarVisibility(int handle, // consistent caused a perf bot regression on Windows (which // shares views). See http://crbug.com/40225 // // *visible = browser->window()->IsBookmarkBarVisible(); +#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) *visible = browser->profile()->GetPrefs()->GetBoolean( prefs::kShowBookmarkBar); +#else + *visible = browser->window()->IsBookmarkBarVisible(); +#endif *animating = browser->window()->IsBookmarkBarAnimating(); } } |