Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: chrome/browser/ui/panels/base_panel_browser_test.cc

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback and fix issue with preferred size and auto resize having the same callback. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f023f3897f9022698a14588e1f0e0e4006bf8c3c..ff544724cdff81c606798a41d358c834102b34e6 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 (params.show_flag == SHOW_AS_ACTIVE) {
panel->Show();

Powered by Google App Engine
This is Rietveld 408576698