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

Unified Diff: ash/mus/window_manager_application.cc

Issue 2569953002: Removes example code that isn't correctly wired up (Closed)
Patch Set: Created 4 years 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/mus/window_manager_application.h ('k') | chrome/app/mash/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_application.cc
diff --git a/ash/mus/window_manager_application.cc b/ash/mus/window_manager_application.cc
index a151caa2615786b129a30e8033f00824f73681d4..c4b2a554aedd8e30c4b5bac3daaedaea8a9a327e 100644
--- a/ash/mus/window_manager_application.cc
+++ b/ash/mus/window_manager_application.cc
@@ -40,8 +40,7 @@
namespace ash {
namespace mus {
-WindowManagerApplication::WindowManagerApplication()
- : screenlock_state_listener_binding_(this) {}
+WindowManagerApplication::WindowManagerApplication() {}
WindowManagerApplication::~WindowManagerApplication() {
// Destroy the WindowManager while still valid. This way we ensure
@@ -151,18 +150,8 @@ bool WindowManagerApplication::OnConnect(
// Register services used in both classic ash and mash.
mojo_interface_factory::RegisterInterfaces(
registry, base::ThreadTaskRunnerHandle::Get());
-
- if (remote_info.identity.name() == "mash_session") {
- context()->connector()->ConnectToInterface(remote_info.identity, &session_);
- session_->AddScreenlockStateListener(
- screenlock_state_listener_binding_.CreateInterfacePtrAndBind());
- }
return true;
}
-void WindowManagerApplication::ScreenlockStateChanged(bool locked) {
- window_manager_->SetScreenLocked(locked);
-}
-
} // namespace mus
} // namespace ash
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | chrome/app/mash/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698