Index: remoting/host/plugin/daemon_controller_win.cc |
diff --git a/remoting/host/plugin/daemon_controller_win.cc b/remoting/host/plugin/daemon_controller_win.cc |
index 040b1461d9bb14ea85f32f687f8e50ba06c8175f..45e82eb3b9fff8d3252a5239d00c91ce662c045e 100644 |
--- a/remoting/host/plugin/daemon_controller_win.cc |
+++ b/remoting/host/plugin/daemon_controller_win.cc |
@@ -643,7 +643,17 @@ void DaemonControllerWin::DoGetUsageStatsConsent( |
// Activate the Daemon Controller and see if it supports |IDaemonControl2|. |
HRESULT hr = ActivateController(); |
- if (FAILED(hr) || control2_.get() == NULL) { |
+ if (FAILED(hr)) { |
+ // The host is not installed yet. Assume that the user's consent is not |
+ // recorded yet and set the default value to true. This value will not come |
+ // into effect until the user installs the host and agrees to crash |
+ // dump reporting. |
+ done.Run(true, true, false); |
+ return; |
+ } |
+ |
+ if (control2_.get() == NULL) { |
+ // The host in installed and does not support crash dump reporting. |
Jamie
2012/06/27 21:02:21
Nit: s/in/is/
alexeypa (please no reviews)
2012/06/27 21:26:40
Done.
|
done.Run(false, false, false); |
return; |
} |
@@ -655,7 +665,7 @@ void DaemonControllerWin::DoGetUsageStatsConsent( |
if (FAILED(hr)) { |
// If the user's consent is not recorded yet, set the default value to true. |
// This value will not come into effect until the user agrees to crash |
- // dump reporting while starting the host. |
+ // dump reporting. |
done.Run(true, true, false); |
return; |
} |