Index: remoting/host/elevated_controller_module_win.cc |
diff --git a/remoting/host/elevated_controller_module_win.cc b/remoting/host/elevated_controller_module_win.cc |
index 0bff8c604e5779a3a41187af461f1c871824f5ee..c8ae7ea5a45dc43a32ae16a3a9e2f861db8e897c 100644 |
--- a/remoting/host/elevated_controller_module_win.cc |
+++ b/remoting/host/elevated_controller_module_win.cc |
@@ -31,7 +31,9 @@ class ElevatedControllerModuleWin |
remoting::ElevatedControllerModuleWin _AtlModule; |
int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) { |
- if (remoting::IsCrashReportingEnabled()) { |
+ bool allowed; |
+ bool set_by_policy; |
+ if (remoting::GetUsageStatsConsent(&allowed, &set_by_policy) && allowed) { |
remoting::InitializeCrashReporting(); |
} |