| Index: content/browser/web_contents/web_contents_view_aura.cc
|
| diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
|
| index f0cce6521220a903c2b50270e36df23258510291..d9959de21b4c3fbdc4845224b4dc6ffca60ab2e6 100644
|
| --- a/content/browser/web_contents/web_contents_view_aura.cc
|
| +++ b/content/browser/web_contents/web_contents_view_aura.cc
|
| @@ -362,6 +362,10 @@ void PrepareDragData(const DropData& drop_data,
|
| if (!drop_data.file_contents.empty())
|
| PrepareDragForFileContents(drop_data, provider);
|
| #endif
|
| + // Call SetString() before SetURL() when we actually have a custom string.
|
| + // SetURL() will itself do SetString() when a string hasn't been set yet,
|
| + // but we want to prefer drop_data.text.string() over the URL string if it
|
| + // exists.
|
| if (!drop_data.text.string().empty())
|
| provider->SetString(drop_data.text.string());
|
| if (drop_data.url.is_valid())
|
|
|