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

Unified Diff: ash/wm/dock/docked_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 | « no previous file | ash/wm/dock/docked_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_resizer.h
diff --git a/ash/wm/dock/docked_window_resizer.h b/ash/wm/dock/docked_window_resizer.h
index 41bb4fecd5f68f86a4fe2235562c33e7f4914024..3f4bd47fb2623580b8080e88474712c2db580dd4 100644
--- a/ash/wm/dock/docked_window_resizer.h
+++ b/ash/wm/dock/docked_window_resizer.h
@@ -9,6 +9,7 @@
#include "ash/wm/window_resizer.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
namespace gfx {
class Point;
@@ -98,9 +99,7 @@ class ASH_EXPORT DockedWindowResizer : public WindowResizer {
// True if the dragged window is docked during the drag.
bool is_docked_;
- // If non-NULL the destructor sets this to true. Used to determine if this has
- // been deleted.
- bool* destroyed_;
+ base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer);
};
« no previous file with comments | « no previous file | ash/wm/dock/docked_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698