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

Unified Diff: remoting/host/plugin/daemon_controller_mac.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: 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/plugin/daemon_controller_mac.cc
diff --git a/remoting/host/plugin/daemon_controller_mac.cc b/remoting/host/plugin/daemon_controller_mac.cc
index 2edd16217532cf74f875ffa54b98672d2c4c1264..094aef470529ae081c5fe690d870cd698fcf86ff 100644
--- a/remoting/host/plugin/daemon_controller_mac.cc
+++ b/remoting/host/plugin/daemon_controller_mac.cc
@@ -23,6 +23,7 @@
#include "base/threading/thread.h"
#include "base/time.h"
#include "base/values.h"
+#include "remoting/host/breakpad.h"
#include "remoting/host/json_host_config.h"
namespace remoting {
@@ -70,6 +71,9 @@ class DaemonControllerMac : public remoting::DaemonController {
virtual void Stop(const CompletionCallback& done_callback) OVERRIDE;
virtual void SetWindow(void* window_handle) OVERRIDE;
virtual void GetVersion(const GetVersionCallback& done_callback) OVERRIDE;
+ virtual void GetUsageStatsConsent(
+ const GetUsageStatsConsentCallback& callback) OVERRIDE;
+ virtual void SetUsageStatsConsent(bool consent) OVERRIDE;
private:
void DoGetConfig(const GetConfigCallback& callback);
@@ -180,6 +184,18 @@ void DaemonControllerMac::GetVersion(const GetVersionCallback& callback) {
callback));
}
+void DaemonControllerMac::GetUsageStatsConsent(
+ const GetUsageStatsConsentCallback& callback) {
+ // Crash dump collection is not implemented on Mac yet.
+ // http://crbug.com/130678.
+ callback.Run(false, false);
+}
+
+void DaemonControllerMac::SetUsageStatsConsent(bool consent) {
+ // Crash dump collection is not implemented on Mac yet.
+ // http://crbug.com/130678.
+}
+
void DaemonControllerMac::DoGetConfig(const GetConfigCallback& callback) {
FilePath config_path(kHostConfigFile);
JsonHostConfig host_config(config_path);

Powered by Google App Engine
This is Rietveld 408576698