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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 2080723008: [Chromoting] Use device::PowerSaveBlocker to block screen saver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 5 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 dd5e5fc8af3822341a54e20f43afcc882367729c..5ef94bc4c91f44bfd052f49517cac5abe4cf04ca 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -71,6 +71,7 @@
#include "remoting/host/pairing_registry_delegate.h"
#include "remoting/host/pin_hash.h"
#include "remoting/host/policy_watcher.h"
+#include "remoting/host/screen_saver_blocker.h"
#include "remoting/host/security_key/gnubby_auth_handler.h"
#include "remoting/host/security_key/gnubby_extension.h"
#include "remoting/host/service_urls.h"
@@ -401,6 +402,7 @@ class HostProcess : public ConfigWatcher::Delegate,
host_change_notification_listener_;
std::unique_ptr<HostStatusLogger> host_status_logger_;
std::unique_ptr<HostEventLogger> host_event_logger_;
+ std::unique_ptr<ScreenSaverBlocker> screen_saver_blocker_;
std::unique_ptr<ChromotingHost> host_;
@@ -1472,6 +1474,9 @@ void HostProcess::StartHost() {
host_->AsWeakPtr(), ServerLogEntry::ME2ME,
signal_strategy_.get(), directory_bot_jid_));
+ screen_saver_blocker_.reset(
+ new ScreenSaverBlocker(host_->AsWeakPtr(), context_->Copy()));
Sergey Ulanov 2016/07/08 21:31:47 Please don't use ChromotingHostContext::Copy(). Id
Hzj_jie 2016/07/10 22:04:57 Done.
+
// Set up reporting the host status notifications.
#if defined(REMOTING_MULTI_PROCESS)
host_event_logger_.reset(

Powered by Google App Engine
This is Rietveld 408576698