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

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: 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
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;

Powered by Google App Engine
This is Rietveld 408576698