Fixes possible crash in tab dragging
commit7a27d4d62877348f8e172c4a432cc54c0a969c02
authorsky <sky@chromium.org>
Sat, 6 Sep 2014 18:55:15 +0000 (6 11:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 6 Sep 2014 18:58:33 +0000 (6 18:58 +0000)
tree9176756502a96a632fdce279bb5c3df12fe8e3b1
parente69b9325c720a85cc36b80432349f581b0758d2c
Fixes possible crash in tab dragging

This crash would happen if you select a couple of tabs, then click but
don't drag and hit escape or control-w. The crash would occur because
we would end up inserting the tabs a second time even though they are
already in the tabstrip.

BUG=360822
TEST=see bug
R=ben@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#293625}
chrome/browser/ui/views/tabs/tab_drag_controller.cc