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

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: use golden ratio 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index a9ad4d8312cb84524f7825709dbbbfbf7e1e68d0..8ed2819503b16b1537a67f5cfc8bfceec992cf48 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -445,8 +445,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;
}
@@ -487,9 +486,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698