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

Unified Diff: ash/common/wm/always_on_top_controller.cc

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/common/wm/always_on_top_controller.cc
diff --git a/ash/common/wm/always_on_top_controller.cc b/ash/common/wm/always_on_top_controller.cc
index 275a4462df10cca3ace08399117dbfd1645a7ffc..a9fcb89c7d1dd970e2372944f67191e89a58f713 100644
--- a/ash/common/wm/always_on_top_controller.cc
+++ b/ash/common/wm/always_on_top_controller.cc
@@ -6,7 +6,6 @@
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/workspace/workspace_layout_manager.h"
-#include "ash/common/wm/workspace/workspace_layout_manager_delegate.h"
#include "ash/common/wm_window.h"
#include "ash/common/wm_window_property.h"
#include "base/memory/ptr_util.h"
@@ -16,7 +15,7 @@ namespace ash {
AlwaysOnTopController::AlwaysOnTopController(WmWindow* viewport)
: always_on_top_container_(viewport) {
always_on_top_container_->SetLayoutManager(
- base::WrapUnique(new WorkspaceLayoutManager(viewport, nullptr)));
+ base::MakeUnique<WorkspaceLayoutManager>(viewport));
// Container should be empty.
DCHECK(always_on_top_container_->GetChildren().empty());
always_on_top_container_->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698