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

Unified Diff: remoting/webapp/host_controller.js

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/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 5f45dae161d99727aa4cec906c57b0d0f414d23d..419e22773de149fc1fa77e943d0aeb37aa5d840c 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -66,6 +66,22 @@ remoting.HostController.prototype.state = function() {
};
/**
+ * @param {function(boolean, boolean):void} callback
+ * Callback to be called when done.
Jamie 2012/06/14 23:43:56 Nit: Indent the description four spaces, and start
alexeypa (please no reviews) 2012/06/19 23:27:29 Done.
+ */
+remoting.HostController.prototype.getConsent = function(callback) {
+ this.plugin_.getUsageStatsConsent(callback);
+};
+
+/**
+ * Records the user's consent to crash dump reporting.
+ * @param {boolean} Whether the user allows crash dump reporting.
Jamie 2012/06/14 23:43:56 You're missing an |allowed| in this JSDoc comment.
alexeypa (please no reviews) 2012/06/19 23:27:29 Done.
+ */
+remoting.HostController.prototype.setConsent = function(allowed) {
+ this.plugin_.setUsageStatsConsent(allowed);
+};
+
+/**
* Show or hide daemon-specific parts of the UI.
* @return {void} Nothing.
*/

Powered by Google App Engine
This is Rietveld 408576698