diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 21:33:40 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 21:33:40 +0000 |
commit | f431704be7dfe258834c19c1c18d837fb46a3d16 (patch) | |
tree | d9d106fe2525ced0af163d45771ed9ed666b29ee /chrome/browser/cocoa/browser_window_controller.mm | |
parent | 6b847b31ab8c19ba2637359d1a6b4ecf9d8983a3 (diff) | |
download | chromium_src-f431704be7dfe258834c19c1c18d837fb46a3d16.zip chromium_src-f431704be7dfe258834c19c1c18d837fb46a3d16.tar.gz chromium_src-f431704be7dfe258834c19c1c18d837fb46a3d16.tar.bz2 |
When dropping a tab torn from a maximized window, inherit the restored size and maximized state, instead of creating a restored window at the maximized size.
BUG=22154
TEST=Drag a tab from a maximized window and drop it; it should create a maximized window.
Review URL: http://codereview.chromium.org/3032039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_controller.mm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index b6eb3b1..d4186b1 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1157,10 +1157,8 @@ // Create the new window with a single tab in its model, the one being // dragged. DockInfo dockInfo; - Browser* newBrowser = - browser_->tabstrip_model()->TearOffTabContents(contents, - browserRect, - dockInfo); + Browser* newBrowser = browser_->tabstrip_model()->delegate()-> + CreateNewStripWithContents(contents, browserRect, dockInfo, false); // Propagate the tab pinned state of the new tab (which is the only tab in // this new window). |