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

Unified Diff: ash/wm/panels/panel_window_resizer.h

Issue 23645008: Use a weak pointer to determine if resizer was destroyed by nested Drag calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/panels/panel_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_window_resizer.h
diff --git a/ash/wm/panels/panel_window_resizer.h b/ash/wm/panels/panel_window_resizer.h
index 56a38f54be75906fa828b592723c62183ebaa009..df3d8c4451383d0da79733a2dd93bb37afd6ea80 100644
--- a/ash/wm/panels/panel_window_resizer.h
+++ b/ash/wm/panels/panel_window_resizer.h
@@ -7,6 +7,7 @@
#include "ash/wm/window_resizer.h"
#include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
namespace gfx {
class Rect;
@@ -83,9 +84,7 @@ class ASH_EXPORT PanelWindowResizer : public WindowResizer {
// True if the window should attach to the launcher after releasing.
bool should_attach_;
- // If non-NULL the destructor sets this to true. Used to determine if this has
- // been deleted.
- bool* destroyed_;
+ base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer);
};
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/panels/panel_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698