Index: remoting/host/host_service_win.cc |
diff --git a/remoting/host/host_service_win.cc b/remoting/host/host_service_win.cc |
index 0f347ecd9ed7abdb317527ea05ae418a19e1a948..4783869ae472ab5717e9123110e54a328fd97bd0 100644 |
--- a/remoting/host/host_service_win.cc |
+++ b/remoting/host/host_service_win.cc |
@@ -411,7 +411,9 @@ LRESULT CALLBACK HostService::SessionChangeNotificationProc(HWND hwnd, |
} // namespace remoting |
int main(int argc, char** argv) { |
- if (remoting::IsCrashReportingEnabled()) { |
+ bool allowed; |
+ bool set_by_policy; |
+ if (remoting::GetUsageStatsConsent(&allowed, &set_by_policy) && allowed) { |
remoting::InitializeCrashReporting(); |
} |