Commit e2b71891 authored by tapted@chromium.org's avatar tapted@chromium.org

[win] Set the drag item visible when externally cancelling a drag in the app launcher

When the nested message loop running a synchronous drag event on windows
is cancelled due to an external event, it does not currently set the
item visible again.

Now it does.

BUG=393519
TEST=Open a signed-in profile on two computers. On one computer,
uninstall an app from the app launcher. Then, Quickly switch to the
other computer and start dragging around a different app. When the sync
event to uninstall the app comes in, the drag should cancel, with the
item being dragged reappearing.

Review URL: https://codereview.chromium.org/435303005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287499 0039d316-1c4b-4281-b951-d872f2087c98
parent e75c38b7
......@@ -270,6 +270,8 @@ class SynchronousDrag : public ui::DragSourceWin {
void EndDragExternally() {
CancelDrag();
DCHECK(drag_view_);
drag_view_->SetVisible(true);
drag_view_ = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment