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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_factory_cocoa.mm

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: rebase to tot Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 #include "chrome/browser/ui/browser_window.h" 6 #include "chrome/browser/ui/browser_window.h"
7 #include "chrome/browser/ui/cocoa/browser_window_controller.h" 7 #include "chrome/browser/ui/cocoa/browser_window_controller.h"
8 8
9 // Create the controller for the Browser, which handles loading the browser 9 // Create the controller for the Browser, which handles loading the browser
10 // window from the nib. The controller takes ownership of |browser|. 10 // window from the nib. The controller takes ownership of |browser|.
11 // static 11 // static
12 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 12 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser,
13 bool user_gesture) {
13 BrowserWindowController* controller = 14 BrowserWindowController* controller =
14 [[BrowserWindowController alloc] initWithBrowser:browser]; 15 [[BrowserWindowController alloc] initWithBrowser:browser];
15 return [controller browserWindow]; 16 return [controller browserWindow];
16 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698