Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h

Issue 819793002: Reland: Fix crash when the source browser window is deleted during a drag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h b/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h
index 0da14e008cd1ba484b4dba85bdd509b5491d5853..36bcc7364d65b74168813ddb017d7e70574319a7 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "ui/views/views_export.h"
#include "ui/wm/public/drag_drop_client.h"
@@ -49,6 +50,8 @@ class VIEWS_EXPORT DesktopDragDropClientWin
scoped_refptr<DesktopDropTargetWin> drop_target_;
+ base::WeakPtrFactory<DesktopDragDropClientWin> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWin);
};
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698