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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index 1997b873a2349ff601ee1869a531a63314eee050..7e5233195dd4c4f78fc5d0d0b204b238caf74c77 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1733,7 +1733,7 @@ Browser* TabDragController::CreateBrowserForDrag(
Profile* profile =
Profile::FromBrowserContext(drag_data_[0].contents->GetBrowserContext());
- Browser::CreateParams create_params(Browser::TYPE_TABBED, profile);
+ Browser::CreateParams create_params(Browser::TYPE_TABBED, profile, true);
create_params.initial_bounds = new_bounds;
Browser* browser = new Browser(create_params);
is_dragging_new_browser_ = true;

Powered by Google App Engine
This is Rietveld 408576698