Index: remoting/host/elevated_controller_win.cc |
diff --git a/remoting/host/elevated_controller_win.cc b/remoting/host/elevated_controller_win.cc |
index faeb2da88f10f124e55094d6b735df78141335b5..30e116f1bc9e6e8c2eb95874bb98a5759021598a 100644 |
--- a/remoting/host/elevated_controller_win.cc |
+++ b/remoting/host/elevated_controller_win.cc |
@@ -19,6 +19,7 @@ |
#include "base/win/scoped_handle.h" |
#include "remoting/host/branding.h" |
#include "remoting/host/elevated_controller_resource.h" |
+#include "remoting/host/usage_stats_consent.h" |
#include "remoting/host/verify_config_window_win.h" |
namespace { |
@@ -480,6 +481,27 @@ STDMETHODIMP ElevatedControllerWin::UpdateConfig(BSTR config) { |
owner_window_); |
} |
+STDMETHODIMP ElevatedControllerWin::GetUsageStatsConsent(BOOL* allowed, |
+ BOOL* set_by_policy) { |
+ bool local_allowed; |
+ bool local_set_by_policy; |
+ if (remoting::GetUsageStatsConsent(&local_allowed, &local_set_by_policy)) { |
+ *allowed = local_allowed; |
+ *set_by_policy = local_set_by_policy; |
+ return S_OK; |
+ } else { |
+ return E_FAIL; |
+ } |
+} |
+ |
+STDMETHODIMP ElevatedControllerWin::SetUsageStatsConsent(BOOL allowed) { |
+ if (remoting::SetUsageStatsConsent(!!allowed)) { |
+ return S_OK; |
+ } else { |
+ return E_FAIL; |
+ } |
+} |
+ |
HRESULT ElevatedControllerWin::OpenService(ScopedScHandle* service_out) { |
DWORD error; |