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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_main.cc

Issue 2847853003: Remove policy watching from It2MeHost. (Closed)
Patch Set: Add dep. Created 3 years, 7 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/it2me/it2me_native_messaging_host_main.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc
index 43faaf1235c4d84c4144781e6cb9425ec526b171..129d7e1818afb2c8fd3d05e102d7cf7b75143418 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc
@@ -21,6 +21,7 @@
#include "remoting/host/logging.h"
#include "remoting/host/native_messaging/native_messaging_pipe.h"
#include "remoting/host/native_messaging/pipe_messaging_channel.h"
+#include "remoting/host/policy_watcher.h"
#include "remoting/host/resources.h"
#include "remoting/host/usage_stats_consent.h"
@@ -186,8 +187,10 @@ int It2MeNativeMessagingHostMain(int argc, char** argv) {
std::unique_ptr<ChromotingHostContext> context =
ChromotingHostContext::Create(new remoting::AutoThreadTaskRunner(
message_loop.task_runner(), run_loop.QuitClosure()));
+ std::unique_ptr<PolicyWatcher> policy_watcher =
+ PolicyWatcher::Create(nullptr, context->file_task_runner());
std::unique_ptr<extensions::NativeMessageHost> host(
- new It2MeNativeMessagingHost(needs_elevation, /*policy_service=*/nullptr,
+ new It2MeNativeMessagingHost(needs_elevation, std::move(policy_watcher),
std::move(context), std::move(factory)));
host->Start(native_messaging_pipe.get());
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698