| Index: content/browser/web_contents/web_contents_view_android.cc
|
| diff --git a/content/browser/web_contents/web_contents_view_android.cc b/content/browser/web_contents/web_contents_view_android.cc
|
| index 33e714ea869ec8b75d5aead4c2d1ee9e479fba31..c5a8e50c394792bbc20cff34d5859c6d7806178d 100644
|
| --- a/content/browser/web_contents/web_contents_view_android.cc
|
| +++ b/content/browser/web_contents/web_contents_view_android.cc
|
| @@ -234,12 +234,18 @@ void WebContentsViewAndroid::StartDragging(
|
| const gfx::ImageSkia& image,
|
| const gfx::Vector2d& image_offset,
|
| const DragEventSourceInfo& event_info) {
|
| - if (drop_data.text.is_null())
|
| + if (drop_data.text.is_null()) {
|
| + // Need to clear drag and drop state in blink.
|
| + OnDragEnded();
|
| return;
|
| + }
|
|
|
| gfx::NativeView native_view = GetNativeView();
|
| - if (!native_view)
|
| + if (!native_view) {
|
| + // Need to clear drag and drop state in blink.
|
| + OnDragEnded();
|
| return;
|
| + }
|
|
|
| JNIEnv* env = AttachCurrentThread();
|
| ScopedJavaLocalRef<jstring> jtext =
|
|
|