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

Unified Diff: ash/desktop_background/desktop_background_controller.h

Issue 10898007: Forget about DesktopBackgroundWidget if it was deleted (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
Index: ash/desktop_background/desktop_background_controller.h
diff --git a/ash/desktop_background/desktop_background_controller.h b/ash/desktop_background/desktop_background_controller.h
index 3d2c919d41e95bbbc943ff29d933c80b05a262ae..2235f1331e1295c1cd691914f53f13148f5501a7 100644
--- a/ash/desktop_background/desktop_background_controller.h
+++ b/ash/desktop_background/desktop_background_controller.h
@@ -116,6 +116,10 @@ class ASH_EXPORT DesktopBackgroundController : public aura::WindowObserver {
// Move all desktop widgets to unlocked container.
void MoveDesktopToUnlockedContainer();
+ // Drop references to background view for |root_window|, because the view
+ // was deleted.
+ void CleanUpView(aura::RootWindow* root_window);
Nikita (slow) 2012/08/28 17:42:38 nit: Cleanup
+
// WindowObserver implementation.
virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698