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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 10836218: Remove BrowserList::GetLastActive calls from window_sizer.cc et al. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ui/browser_finder.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 79afd27400e82bc73ade0b1353307a98227993a6..7872b0762b1b16fdafa755579623a0d48203a03f 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -277,7 +277,9 @@ enum {
if ((browser_->is_type_popup() || browser_->is_type_panel()) &&
windowRect.x() == 0 && windowRect.y() == 0) {
gfx::Size size = windowRect.size();
- windowRect.set_origin(WindowSizer::GetDefaultPopupOrigin(size));
+ windowRect.set_origin(
+ WindowSizer::GetDefaultPopupOrigin(size,
+ browser_->host_desktop_type()));
}
// Size and position the window. Note that it is not yet onscreen. Popup
« no previous file with comments | « chrome/browser/ui/browser_finder.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698