Index: remoting/host/elevated_controller_win.cc |
diff --git a/remoting/host/elevated_controller_win.cc b/remoting/host/elevated_controller_win.cc |
index 7ca42dd08c95cc92018c107153a0819d6809df8c..387d2399bfffa4f63d8759b62ca16b1901fd5d97 100644 |
--- a/remoting/host/elevated_controller_win.cc |
+++ b/remoting/host/elevated_controller_win.cc |
@@ -19,6 +19,7 @@ |
#include "base/values.h" |
#include "base/win/scoped_handle.h" |
#include "remoting/host/branding.h" |
+#include "remoting/host/breakpad.h" |
#include "remoting/host/elevated_controller_resource.h" |
#include "remoting/host/verify_config_window_win.h" |
@@ -481,6 +482,27 @@ STDMETHODIMP ElevatedControllerWin::UpdateConfig(BSTR config) { |
owner_window_); |
} |
+STDMETHODIMP ElevatedControllerWin::GetUsageStatsConsent(BOOL* set_by_policy, |
+ BOOL* allowed) { |
+ bool local_set_by_policy; |
+ bool local_allowed; |
+ if (::remoting::GetUsageStatsConsent(&local_set_by_policy, &local_allowed)) { |
+ *set_by_policy = local_set_by_policy; |
+ *allowed = local_allowed; |
+ 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; |