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

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

Issue 10692195: Consolidate Browser Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
===================================================================
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc (revision 148382)
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc (working copy)
@@ -1880,7 +1880,8 @@
TabStrip* source,
const gfx::Point& screen_point,
std::vector<gfx::Rect>* drag_bounds) {
- Browser* browser = Browser::Create(drag_data_[0].contents->profile());
+ Browser* browser = new Browser(
+ Browser::CreateParams(drag_data_[0].contents->profile()));
gfx::Point center(0, source->height() / 2);
views::View::ConvertPointToWidget(source, &center);
gfx::Rect new_bounds(source->GetWidget()->GetWindowBoundsInScreen());

Powered by Google App Engine
This is Rietveld 408576698