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

Unified Diff: ash/wm/toplevel_window_event_handler.cc

Issue 2550533002: Revert of Reenable Tabdragging tests failing because of IsWindowPositionManaged() (Closed)
Patch Set: Created 4 years 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 | « no previous file | ash/wm/toplevel_window_event_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/toplevel_window_event_handler.cc
diff --git a/ash/wm/toplevel_window_event_handler.cc b/ash/wm/toplevel_window_event_handler.cc
index 067e23875a9b8f5da41b43e5c55c461bbf28c4ca..5c4d9578433bf66b9d6efe8f5758529c7ee49e4c 100644
--- a/ash/wm/toplevel_window_event_handler.cc
+++ b/ash/wm/toplevel_window_event_handler.cc
@@ -5,9 +5,7 @@
#include "ash/wm/toplevel_window_event_handler.h"
#include "ash/aura/wm_window_aura.h"
-#include "ash/common/wm/window_state.h"
#include "ash/shell.h"
-#include "ash/wm/window_state_aura.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "ui/aura/client/cursor_client.h"
@@ -89,18 +87,10 @@
base::MessageLoop* loop = base::MessageLoop::current();
base::MessageLoop::ScopedNestableTaskAllower allow_nested(loop);
- // Disable window position auto management while dragging and restore it
- // aftrewards.
- wm::WindowState* window_state = wm::GetWindowState(source);
- const bool window_position_managed = window_state->window_position_managed();
- window_state->set_window_position_managed(false);
-
run_loop.Run();
if (!weak_ptr)
return aura::client::MOVE_CANCELED;
-
- window_state->set_window_position_managed(window_position_managed);
in_move_loop_ = false;
return result == wm::WmToplevelWindowEventHandler::DragResult::SUCCESS
« no previous file with comments | « no previous file | ash/wm/toplevel_window_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698