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

Unified Diff: remoting/host/host_service_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: CR feedback & rebased. 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698