Index: ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
index bf5839847850936a8b3c40d5390f67dc9e56b454..e6de96941f83e9ffaa005d54eb795ea0b5c69f0f 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)); |