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

Unified Diff: chromeos/dbus/session_manager_client.cc

Issue 167663004: chromeos: Remove old LockScreen signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: surprise: old chunk mismatch Created 6 years, 10 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 | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.cc
diff --git a/chromeos/dbus/session_manager_client.cc b/chromeos/dbus/session_manager_client.cc
index 7def286cda74cd1d982eea943fa10d92a0d5f8b3..28b28e132632049b41f2534c5287a64e8fb3bde2 100644
--- a/chromeos/dbus/session_manager_client.cc
+++ b/chromeos/dbus/session_manager_client.cc
@@ -238,16 +238,6 @@ class SessionManagerClientImpl : public SessionManagerClient {
blocking_method_caller_.reset(
new BlockingMethodCaller(bus, session_manager_proxy_));
- // Signals emitted on Chromium's interface. Many of these ought to be
- // method calls instead.
- session_manager_proxy_->ConnectToSignal(
- chromium::kChromiumInterface,
- chromium::kLockScreenSignal,
- base::Bind(&SessionManagerClientImpl::ScreenLockReceived,
- weak_ptr_factory_.GetWeakPtr()),
- base::Bind(&SessionManagerClientImpl::SignalConnected,
- weak_ptr_factory_.GetWeakPtr()));
-
// Signals emitted on the session manager's interface.
session_manager_proxy_->ConnectToSignal(
login_manager::kSessionManagerInterface,
@@ -463,10 +453,6 @@ class SessionManagerClientImpl : public SessionManagerClient {
FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
}
- void ScreenLockReceived(dbus::Signal* signal) {
- FOR_EACH_OBSERVER(Observer, observers_, LockScreen());
- }
-
void ScreenIsLockedReceived(dbus::Signal* signal) {
FOR_EACH_OBSERVER(Observer, observers_, ScreenIsLocked());
}
@@ -528,9 +514,7 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
virtual void StartSession(const std::string& user_email) OVERRIDE {}
virtual void StopSession() OVERRIDE {}
virtual void StartDeviceWipe() OVERRIDE {}
- virtual void RequestLockScreen() OVERRIDE {
- FOR_EACH_OBSERVER(Observer, observers_, LockScreen());
Daniel Erat 2014/02/14 23:36:56 Steven, curious about your thoughts about this. Th
stevenjb 2014/02/18 17:32:14 The stub should try to mimic the behavior without
Daniel Erat 2014/02/18 17:47:21 org.chromium.LibCrosService is implemented in c/b/
stevenjb 2014/02/18 17:52:40 OK. I personally would like to see dbus calls move
- }
+ virtual void RequestLockScreen() OVERRIDE {}
virtual void NotifyLockScreenShown() OVERRIDE {
FOR_EACH_OBSERVER(Observer, observers_, ScreenIsLocked());
}
« no previous file with comments | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698