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

Unified Diff: ash/mus/test/ash_test_impl_mus.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 years, 8 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
« no previous file with comments | « ash/devtools/ash_devtools_unittest.cc ('k') | ash/mus/top_level_window_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/test/ash_test_impl_mus.cc
diff --git a/ash/mus/test/ash_test_impl_mus.cc b/ash/mus/test/ash_test_impl_mus.cc
index 32a33bdc9c28d743c0b66a8e2e75b9c7cf0f24da..92e5bb591200e073140e5e4eb45b7f90829396c7 100644
--- a/ash/mus/test/ash_test_impl_mus.cc
+++ b/ash/mus/test/ash_test_impl_mus.cc
@@ -9,6 +9,7 @@
#include "base/memory/ptr_util.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/window_manager.mojom.h"
+#include "ui/aura/window.h"
#include "ui/wm/core/window_util.h"
namespace ash {
@@ -54,10 +55,10 @@ std::unique_ptr<WindowOwner> AshTestImplMus::CreateTestWindow(
const gfx::Rect& bounds_in_screen,
ui::wm::WindowType type,
int shell_window_id) {
- WmWindow* window =
- WmWindow::Get(wm_test_base_->CreateTestWindow(bounds_in_screen, type));
- window->SetShellWindowId(shell_window_id);
- return base::MakeUnique<WindowOwner>(window);
+ aura::Window* window =
+ wm_test_base_->CreateTestWindow(bounds_in_screen, type);
+ window->set_id(shell_window_id);
+ return base::MakeUnique<WindowOwner>(WmWindow::Get(window));
}
std::unique_ptr<WindowOwner> AshTestImplMus::CreateToplevelTestWindow(
« no previous file with comments | « ash/devtools/ash_devtools_unittest.cc ('k') | ash/mus/top_level_window_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698