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

Unified Diff: remoting/host/elevated_controller_win.cc

Issue 10537182: The user's consent to crash dumps reporting can now be set via the UI (Windows only). The checkbox … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 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/elevated_controller_win.h ('k') | remoting/host/host_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « remoting/host/elevated_controller_win.h ('k') | remoting/host/host_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698