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

Unified Diff: mash/example/window_type_launcher/window_type_launcher.cc

Issue 1810713002: Cascade shutdown of instances (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@55all_users
Patch Set: . Created 4 years, 9 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: mash/example/window_type_launcher/window_type_launcher.cc
diff --git a/mash/example/window_type_launcher/window_type_launcher.cc b/mash/example/window_type_launcher/window_type_launcher.cc
index b46939578463411c158ff6472d57d026deae5c22..6d22636550eb3ecfbe4953bd1b03f6f36959b6d6 100644
--- a/mash/example/window_type_launcher/window_type_launcher.cc
+++ b/mash/example/window_type_launcher/window_type_launcher.cc
@@ -6,7 +6,6 @@
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
-#include "mash/login/public/interfaces/login.mojom.h"
#include "mash/shell/public/interfaces/shell.mojom.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/shell/public/cpp/connection.h"
@@ -283,13 +282,13 @@ class WindowTypeLauncherView : public views::WidgetDelegateView,
connector_->ConnectToInterface("mojo:mash_shell", &shell);
shell->LockScreen();
} else if (sender == logout_button_) {
- mash::login::mojom::LoginPtr login;
- connector_->ConnectToInterface("mojo:login", &login);
- login->Logout();
+ mash::shell::mojom::ShellPtr shell;
+ connector_->ConnectToInterface("mojo:mash_shell", &shell);
+ shell->Logout();
} else if (sender == switch_user_button_) {
- mash::login::mojom::LoginPtr login;
- connector_->ConnectToInterface("mojo:login", &login);
- login->SwitchUser();
+ mash::shell::mojom::ShellPtr shell;
+ connector_->ConnectToInterface("mojo:mash_shell", &shell);
+ shell->SwitchUser();
} else if (sender == widgets_button_) {
NOTIMPLEMENTED();
}
« no previous file with comments | « mash/example/window_type_launcher/BUILD.gn ('k') | mash/init/init.h » ('j') | mash/init/init.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698