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

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

Issue 376513002: Remove useless TabDragController::detach_behavior_ and TabDragController::detach_into_browser_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 1b3df8a2a05ce44710126aa46bc633da6a3b5a4a..ab9864eaae746d36de486799f4a4aee471024a71 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1050,8 +1050,6 @@ void TabStrip::MaybeStartDrag(
// creating the DragController remembers the WebContents delegates and we need
// to make sure the existing DragController isn't still a delegate.
drag_controller_.reset();
- TabDragController::DetachBehavior detach_behavior =
- TabDragController::DETACHABLE;
TabDragController::MoveBehavior move_behavior =
TabDragController::REORDER;
// Use MOVE_VISIBILE_TABS in the following conditions:
@@ -1074,7 +1072,7 @@ void TabStrip::MaybeStartDrag(
drag_controller_.reset(new TabDragController);
drag_controller_->Init(
this, tab, tabs, gfx::Point(x, y), event.x(), selection_model,
- detach_behavior, move_behavior, EventSourceFromEvent(event));
+ move_behavior, EventSourceFromEvent(event));
}
void TabStrip::ContinueDrag(views::View* view, const ui::LocatedEvent& event) {
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698