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

Unified Diff: ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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/common/wm/maximize_mode/workspace_backdrop_delegate.cc
diff --git a/ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc b/ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc
index 3862e76a32eb46eae9e55a3220faedb6e50e8a6a..51113c24500eb035a3f8129279c1dc8184932a86 100644
--- a/ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc
+++ b/ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc
@@ -5,7 +5,6 @@
#include "ash/common/wm/maximize_mode/workspace_backdrop_delegate.h"
#include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
@@ -64,7 +63,7 @@ WorkspaceBackdropDelegate::WorkspaceBackdropDelegate(WmWindow* container)
container_->GetRootWindowController()->ConfigureWidgetInitParamsForContainer(
background_, container_->GetShellWindowId(), &params);
background_->Init(params);
- background_window_ = WmLookup::Get()->GetWindowForWidget(background_);
+ background_window_ = WmWindow::Get(background_->GetNativeWindow());
// Do not use the animation system. We don't want the bounds animation and
// opacity needs to get set to |kBackdropOpacity|.
background_window_->SetVisibilityAnimationTransition(::wm::ANIMATE_NONE);
« no previous file with comments | « ash/common/wm/immersive_context_ash.cc ('k') | ash/common/wm/overview/cleanup_animation_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698