| Index: chrome/browser/ui/panels/base_panel_browser_test.cc
|
| diff --git a/chrome/browser/ui/panels/base_panel_browser_test.cc b/chrome/browser/ui/panels/base_panel_browser_test.cc
|
| index 037a52f5f4fbfb4281267e882b77d79ff0cebd43..b08b9590596729a1d3d8cf1b76a0a7c03ffd29cb 100644
|
| --- a/chrome/browser/ui/panels/base_panel_browser_test.cc
|
| +++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
|
| @@ -174,7 +174,10 @@ void BasePanelBrowserTest::SetUpOnMainThread() {
|
| mock_auto_hiding_desktop_bar_ = new MockAutoHidingDesktopBarImpl(
|
| panel_manager);
|
| panel_manager->set_auto_hiding_desktop_bar(mock_auto_hiding_desktop_bar_);
|
| - panel_manager->SetWorkAreaForTesting(testing_work_area_);
|
| + // Do not use the testing work area if it is empty since we're going to
|
| + // use the actual work area in some testing scenarios.
|
| + if (!testing_work_area_.IsEmpty())
|
| + panel_manager->SetWorkAreaForTesting(testing_work_area_);
|
| panel_manager->enable_auto_sizing(false);
|
| panel_manager->remove_delays_for_testing();
|
| // This is needed so the subsequently created panels can be activated.
|
|
|