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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_USAGE_STATS_CONSENT_H_ 5 #ifndef REMOTING_HOST_USAGE_STATS_CONSENT_H_
6 #define REMOTING_HOST_USAGE_STATS_CONSENT_H_ 6 #define REMOTING_HOST_USAGE_STATS_CONSENT_H_
7 7
8 namespace remoting { 8 namespace remoting {
9 9
10 // Returns true if the user has agreed to crash dump collection and uploading. 10 // Retrieves the user's consent to collect crash dumps and gather usage
11 bool IsCrashReportingEnabled(); 11 // statistics.
12 bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy);
13
14 // Retrieves the effective user's consent to collect crash dumps and gather
15 // usage statistics. In most cases the returned value matches |allowed| returned
16 // by GetUsageStatsConsent(). If GetUsageStatsConsent() fails this routine
17 // reports that crash dump repoting is disabled.
18 bool IsUsageStatsAllowed();
19
20 // Records the user's consent to collect crash dumps and gather usage
21 // statistics.
22 bool SetUsageStatsConsent(bool allowed);
12 23
13 } // remoting 24 } // remoting
14 25
15 #endif // REMOTING_HOST_USAGE_STATS_CONSENT_H_ 26 #endif // REMOTING_HOST_USAGE_STATS_CONSENT_H_
OLDNEW
« 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