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

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

Issue 8602007: Panels: Disable auto-resize if initial size is specified during creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index ea340c7fdc3d8c84b2eb77978292fc5c83446388..ce9d2272e09642daf3bd2a1777d3941a36e1c227 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -443,8 +443,7 @@ Browser* Browser::Create(Profile* profile) {
Browser* Browser::CreateWithParams(const CreateParams& params) {
Browser* browser = new Browser(params.type, params.profile);
browser->app_name_ = params.app_name;
- if (!params.initial_bounds.IsEmpty())
- browser->set_override_bounds(params.initial_bounds);
+ browser->set_override_bounds(params.initial_bounds);
browser->InitBrowserWindow();
return browser;
}
@@ -485,9 +484,7 @@ Browser* Browser::CreateForApp(Type type,
CreateParams params(type, profile);
params.app_name = app_name;
- if (!window_bounds.IsEmpty())
- params.initial_bounds = window_bounds;
-
+ params.initial_bounds = window_bounds;
return CreateWithParams(params);
}
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | chrome/browser/ui/panels/panel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698