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

Unified Diff: ash/desktop_background/desktop_background_controller.cc

Issue 10898007: Forget about DesktopBackgroundWidget if it was deleted (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional check 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.cc
diff --git a/ash/desktop_background/desktop_background_controller.cc b/ash/desktop_background/desktop_background_controller.cc
index 0bd8b3542efdffc1fbf6f4ec800ef6d77c570ab8..bdbad059050002aff5d767ed9243a0b0d30f8769 100644
--- a/ash/desktop_background/desktop_background_controller.cc
+++ b/ash/desktop_background/desktop_background_controller.cc
@@ -246,6 +246,16 @@ void DesktopBackgroundController::MoveDesktopToLockedContainer() {
GetBackgroundContainerId(true));
}
+void DesktopBackgroundController::CleanupView(aura::RootWindow* root_window) {
+ internal::ComponentWrapper *wrapper;
+ wrapper = root_window->GetProperty(internal::kComponentWrapper);
+ if (NULL == wrapper)
+ return;
+ if (wrapper->GetComponent(false))
+ wrapper->GetComponent(false)->CleanupWidget();
+}
+
+
void DesktopBackgroundController::MoveDesktopToUnlockedContainer() {
if (!locked_)
return;
« no previous file with comments | « ash/desktop_background/desktop_background_controller.h ('k') | ash/desktop_background/desktop_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698