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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host.h

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
« no previous file with comments | « remoting/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_native_messaging_host.h
diff --git a/remoting/host/it2me/it2me_native_messaging_host.h b/remoting/host/it2me/it2me_native_messaging_host.h
index b42cda0236d4ea785eec220c2570ef8d8285d576..948c41a8c004e04db398e1f473f0228227f17cf4 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.h
+++ b/remoting/host/it2me/it2me_native_messaging_host.h
@@ -37,7 +37,7 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
public extensions::NativeMessageHost {
public:
It2MeNativeMessagingHost(bool needs_elevation,
- policy::PolicyService* policy_service,
+ std::unique_ptr<PolicyWatcher> policy_watcher,
std::unique_ptr<ChromotingHostContext> host_context,
std::unique_ptr<It2MeHostFactory> host_factory);
~It2MeNativeMessagingHost() override;
@@ -77,7 +77,7 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
// Callback for DelegatingSignalStrategy.
void SendOutgoingIq(const std::string& iq);
- // Called when initial policies are read.
+ // Called when initial policies are read and when they change.
void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies);
// Returns whether the request was successfully sent to the elevated host.
@@ -116,8 +116,6 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
// queried our policy restrictions.
bool policy_received_ = false;
- policy::PolicyService* policy_service_ = nullptr;
-
// Used to retrieve Chrome policies set for the local machine.
std::unique_ptr<PolicyWatcher> policy_watcher_;
« no previous file with comments | « remoting/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698