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

Unified Diff: mash/screenlock/screenlock.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/screenlock/BUILD.gn ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/screenlock/screenlock.cc
diff --git a/mash/screenlock/screenlock.cc b/mash/screenlock/screenlock.cc
index 0e283424e5c8a77071fd4db62ae4adf17c698f0c..dda831c36e8bab17ec42256e18755f05dbad0387 100644
--- a/mash/screenlock/screenlock.cc
+++ b/mash/screenlock/screenlock.cc
@@ -4,7 +4,7 @@
#include "mash/screenlock/screenlock.h"
-#include "ash/public/interfaces/container.mojom.h"
+#include "ash/public/cpp/shell_window_ids.h"
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "mash/session/public/interfaces/session.mojom.h"
@@ -92,9 +92,9 @@ void Screenlock::OnStart(const service_manager::Identity& identity) {
params.delegate = new ScreenlockView(connector());
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/screenlock/BUILD.gn ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698