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

Unified Diff: mash/login/login.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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 | « mash/login/BUILD.gn ('k') | mash/screenlock/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/login/login.cc
diff --git a/mash/login/login.cc b/mash/login/login.cc
index 1f773e7ec919caea392a84efe2c6d73b67432f4b..7119e0b391d161df83b749e2f08e2bcb5ac110be 100644
--- a/mash/login/login.cc
+++ b/mash/login/login.cc
@@ -7,7 +7,7 @@
#include <map>
#include <memory>
-#include "ash/public/interfaces/container.mojom.h"
+#include "ash/public/cpp/shell_window_ids.h"
#include "base/guid.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
@@ -20,6 +20,7 @@
#include "services/tracing/public/cpp/provider.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/user_access_manager.mojom.h"
+#include "services/ui/public/interfaces/window_manager.mojom.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/mus/aura_init.h"
@@ -48,9 +49,9 @@ class UI : public views::WidgetDelegateView,
params.delegate = ui;
std::map<std::string, std::vector<uint8_t>> properties;
- properties[ash::mojom::kWindowContainer_Property] =
+ properties[ui::mojom::WindowManager::kInitialContainerId_Property] =
mojo::ConvertTo<std::vector<uint8_t>>(
- static_cast<int32_t>(ash::mojom::Container::LOGIN_WINDOWS));
+ ash::kShellWindowId_LockScreenContainer);
ui::Window* window =
views::WindowManagerConnection::Get()->NewTopLevelWindow(properties);
params.native_widget = new views::NativeWidgetMus(
« no previous file with comments | « mash/login/BUILD.gn ('k') | mash/screenlock/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698