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

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

Issue 2494713003: Reenable Tabdragging tests failing because of IsWindowPositionManaged() (Closed)
Patch Set: I know now why the test is failing but I'll keep it disabled until we make a decision Created 4 years, 1 month 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 52d3b4baa578791dc7ee93fc4c5d08c680d3518c..fd06efa29053dd38b96345720d3fe5da5f151fa1 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -1113,6 +1113,8 @@ void TabDragController::RunMoveLoop(const gfx::Vector2d& drag_offset) {
return;
if (move_loop_widget_) {
move_loop_widget_->RemoveObserver(this);
+ if (result != views::Widget::MOVE_LOOP_CANCELED)
+ SetWindowPositionManaged(move_loop_widget_->GetNativeWindow(), true);
move_loop_widget_ = NULL;
Peter Kasting 2016/11/17 01:32:49 Hmm. This block of code looks similar to code in
afakhry 2016/11/17 22:51:05 I'm also not very familiar with this code. So I ag
}
is_dragging_window_ = false;

Powered by Google App Engine
This is Rietveld 408576698