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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 10823215: Curtain mode implementation for Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed linter warnings. Created 8 years, 4 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: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 3f90b65ddcef0c03d0de8bc2864c0f21974aa3ec..126d4203c65990eb77fb1290808f6f0f968c3b83 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -51,6 +51,7 @@
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
+#include "remoting/host/curtain_mode_mac.h"
#include "remoting/host/sighup_listener_mac.h"
#endif
// N.B. OS_WIN is defined by including src/base headers.
@@ -436,6 +437,12 @@ class HostProcess
base::Unretained(this)));
#endif
+#if defined(OS_MACOSX)
Lambros 2012/08/08 00:48:29 Please could you add a comment explaining why we w
Jamie 2012/08/08 01:39:43 I've added it to the header file, which seemed a m
+ curtain_.Init(base::Bind(&HostProcess::OnDisconnectRequested,
+ base::Unretained(this)));
+ host_->AddStatusObserver(&curtain_);
+#endif
+
host_->Start();
CreateAuthenticatorFactory();
@@ -548,6 +555,10 @@ class HostProcess
scoped_refptr<ChromotingHost> host_;
int exit_code_;
+
+#if defined(OS_MACOSX)
+ remoting::CurtainMode curtain_;
+#endif
};
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698