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

Side by Side Diff: ui/aura/window_observer.cc

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/input_state_lookup.h" 5 #include "ui/aura/window_observer.h"
6 6
7 #include "base/logging.h" 7 #include "ui/aura/window.h"
8 8
9 namespace aura { 9 namespace aura {
10 10
11 // static 11 void WindowObserver::OnWindowDestroyed(Window* window) {
12 scoped_ptr<InputStateLookup> InputStateLookup::Create() { 12 window->RemoveObserver(this);
13 return scoped_ptr<InputStateLookup>();
14 } 13 }
15 14
16 } // namespace aura 15 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698