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()); |