| 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 82c7907102ca0f8fd80a2075e9f1b5292fa63a1a..f5cc68c678264063a967506ef2f2451e6d075acd 100644
|
| --- a/chrome/browser/ui/panels/base_panel_browser_test.cc
|
| +++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
|
| @@ -328,10 +328,12 @@ Panel* BasePanelBrowserTest::CreatePanelWithParams(
|
|
|
| Panel* panel = static_cast<Panel*>(panel_browser->window());
|
|
|
| - if (params.bounds.width() || params.bounds.height())
|
| + if (!PanelManager::GetInstance()->auto_sizing_enabled() ||
|
| + params.bounds.width() || params.bounds.height()) {
|
| EXPECT_FALSE(panel->auto_resizable());
|
| - else
|
| + } else {
|
| EXPECT_TRUE(panel->auto_resizable());
|
| + }
|
|
|
| #if defined(OS_LINUX)
|
| // On bots, we might have a simple window manager which always activates new
|
|
|