| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index db4dfc5718e6a383c92b4bca1b2d942a360ee765..24c4f5eae252b3654eba9e6b6ad0f38021da0c4b 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -567,7 +567,9 @@ int CALLBACK WinMain(HINSTANCE instance,
|
| HINSTANCE previous_instance,
|
| LPSTR command_line,
|
| int show_command) {
|
| - if (remoting::IsCrashReportingEnabled()) {
|
| + bool allowed;
|
| + bool set_by_policy;
|
| + if (remoting::GetUsageStatsConsent(&allowed, &set_by_policy) && allowed) {
|
| remoting::InitializeCrashReporting();
|
| }
|
|
|
|
|