summaryrefslogtreecommitdiffstats
path: root/remoting/host/remoting_me2me_host.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-04 22:19:05 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-04 22:19:05 +0000
commit39a631bfa630ffb7104b3aa4f32edd5b89a32cff (patch)
tree80594e9a8a54d77b7a95257b5e4eae9b3b5579c2 /remoting/host/remoting_me2me_host.cc
parentff07d84aead2dbfae0506573b6aff2e626105cd3 (diff)
downloadchromium_src-39a631bfa630ffb7104b3aa4f32edd5b89a32cff.zip
chromium_src-39a631bfa630ffb7104b3aa4f32edd5b89a32cff.tar.gz
chromium_src-39a631bfa630ffb7104b3aa4f32edd5b89a32cff.tar.bz2
Forward host status notifications to the daemon via IPC.
When multi-process host is used the host/network process runs with low privileges (for example at low integrity level on Windows), so it might not have access to the system event log. This CL makes the network process to send host status notifications to the daemon, which in its turn can write them to the system event log. BUG=178873 Review URL: https://chromiumcodereview.appspot.com/12378032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/remoting_me2me_host.cc')
-rw-r--r--remoting/host/remoting_me2me_host.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 2d1a3b7..f3d48b2 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -54,6 +54,7 @@
#include "remoting/host/host_user_interface.h"
#include "remoting/host/ipc_constants.h"
#include "remoting/host/ipc_desktop_environment.h"
+#include "remoting/host/ipc_host_event_logger.h"
#include "remoting/host/json_host_config.h"
#include "remoting/host/log_to_server.h"
#include "remoting/host/logging.h"
@@ -937,8 +938,15 @@ void HostProcess::StartHost() {
log_to_server_.reset(
new LogToServer(host_->AsWeakPtr(), ServerLogEntry::ME2ME,
signal_strategy_.get(), directory_bot_jid_));
+
+ // Set up repoting the host status notifications.
+#if defined(REMOTING_MULTI_PROCESS)
+ host_event_logger_.reset(
+ new IpcHostEventLogger(host_->AsWeakPtr(), daemon_channel_.get()));
+#else // !defined(REMOTING_MULTI_PROCESS)
host_event_logger_ =
HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName);
+#endif // !defined(REMOTING_MULTI_PROCESS)
resizing_host_observer_.reset(
new ResizingHostObserver(desktop_resizer_.get(), host_->AsWeakPtr()));