Fix data_offer_accept with null mimetype.

Passing NULL for mime-type here is valid and indicates that the drop
destination does not support dropping at the current location.  We
were creating a std::string from a nullptr when calling
DataOffer::Accept() and that called strlen on nullptr.

BUG=b:120240161
TEST=exo_unittests

Change-Id: I00cfe116f01383cc94f3f93f4b8ca4af7587db2e
Reviewed-on: https://chromium-review.googlesource.com/c/1436469
Commit-Queue: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Daniele Castagna <dcastagna@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630062}
4 files changed