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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 13375002: Revert issue 158379 (chrome.window.create height) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/common/extensions/api/windows.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 7397d11fc2cf087a12fad17b838764de9d241a42..cd9ce59b2e92aa8479a845086b411b602187ff3a 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1733,13 +1733,10 @@ bool BrowserView::GetSavedWindowPlacement(
#endif
if ((browser_->is_type_popup() || browser_->is_type_panel()) &&
- bounds->width() == browser_->override_bounds().width() &&
- bounds->height() == browser_->override_bounds().height() &&
- !(browser_->is_app() && browser_->is_session_restore()) &&
+ !browser_->is_app() &&
!browser_->is_devtools()) {
- // This is neither a popup window that has not been resized nor it is not an
- // application window in the session restore phase. The value passed in
- // |bounds| represents two pieces of information:
+ // This is non-app popup window. The value passed in |bounds| represents
+ // two pieces of information:
// - the position of the window, in screen coordinates (outer position).
// - the size of the content area (inner size).
// We need to use these values to determine the appropriate size and
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/common/extensions/api/windows.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698