diff options
Diffstat (limited to 'ui/base/dragdrop/os_exchange_data_provider_aurax11.cc')
-rw-r--r-- | ui/base/dragdrop/os_exchange_data_provider_aurax11.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc index bf58398..e6de969 100644 --- a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc +++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc @@ -127,6 +127,9 @@ bool OSExchangeDataProviderAuraX11::DidOriginateFromRenderer() const { } void OSExchangeDataProviderAuraX11::SetString(const base::string16& text_data) { + if (HasString()) + return; + std::string utf8 = base::UTF16ToUTF8(text_data); scoped_refptr<base::RefCountedMemory> mem( base::RefCountedString::TakeString(&utf8)); |