linux-aura: Keep track of whether the drag-client is alive after the drag.
commitbe6d25abdc7019ac2d12cc0b76e709de83a444ef
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 17 Mar 2014 21:07:36 +0000 (17 21:07 +0000)
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 17 Mar 2014 21:07:36 +0000 (17 21:07 +0000)
tree1964e84c444f26db22453f4faff48c127492a1ab
parent106634a9ba1b291e7e0275edbef18c8bf5f92887
linux-aura: Keep track of whether the drag-client is alive after the drag.

It is possible for the DesktopWindowTreeHost (and its drag-client) to be
destroyed during the drag (or after the drag ends in OnXdndFinished(), but
the control returns in StartDragAndDrop()). So keep a weak-ptr around for
the drag session, and check whether it is still valid after the drag
before resetting internal state.

BUG=351504
R=erg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257493 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h