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

Unified Diff: remoting/host/usage_stats_consent.h

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: 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
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/usage_stats_consent_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/usage_stats_consent.h
diff --git a/remoting/host/usage_stats_consent.h b/remoting/host/usage_stats_consent.h
index ee490293dc9649045dc6a4fe0e84b39d634cd630..18081a6c587b9dc47b28c666ea4cbdb912f498a0 100644
--- a/remoting/host/usage_stats_consent.h
+++ b/remoting/host/usage_stats_consent.h
@@ -7,8 +7,19 @@
namespace remoting {
-// Returns true if the user has agreed to crash dump collection and uploading.
-bool IsCrashReportingEnabled();
+// Retrieves the user's consent to collect crash dumps and gather usage
+// statistics.
+bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy);
+
+// Retrieves the effective user's consent to collect crash dumps and gather
+// usage statistics. In most cases the returned value matches |allowed| returned
+// by GetUsageStatsConsent(). If GetUsageStatsConsent() fails this routine
+// reports that crash dump repoting is disabled.
+bool IsUsageStatsAllowed();
+
+// Records the user's consent to collect crash dumps and gather usage
+// statistics.
+bool SetUsageStatsConsent(bool allowed);
} // remoting
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/usage_stats_consent_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698