Chromium Code Reviews| Index: ash/wm/window_state.cc |
| diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc |
| index 7c5c1674f14b050f4593608c1fa278d72e571221..0b2e674f9596a7c3a73932acc5f84b5beb8d1132 100644 |
| --- a/ash/wm/window_state.cc |
| +++ b/ash/wm/window_state.cc |
| @@ -99,6 +99,10 @@ WindowState::WindowState(aura::Window* window) |
| } |
| WindowState::~WindowState() { |
|
sky
2014/05/30 02:29:13
Is it possible to make this private and friend som
|
| + // WindowState is registered as an owned property of |window_|, and window |
| + // unregisters all of its observers in its d'tor before destroying its |
| + // properties. As a result, window_->RemoveObserver() doesn't need to (and |
| + // shouldn't) be called here. |
| } |
| bool WindowState::HasDelegate() const { |