| 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..973b05ac93dbe09c21d22d0f3291d4b1e90dcd28 100644
|
| --- a/remoting/host/elevated_controller_win.cc
|
| +++ b/remoting/host/elevated_controller_win.cc
|
| @@ -20,6 +20,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 {
|
| @@ -481,6 +482,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;
|
|
|
|
|