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

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: 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/webapp/_locales/en/messages.json ('k') | remoting/webapp/host_plugin_proto.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 5f45dae161d99727aa4cec906c57b0d0f414d23d..63ef1f1533179394a11c451e3d7f9d871a193328 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -66,6 +66,14 @@ remoting.HostController.prototype.state = function() {
};
/**
+ * @param {function(boolean, boolean, boolean):void} callback Callback to be
+ * called when done.
+ */
+remoting.HostController.prototype.getConsent = function(callback) {
+ this.plugin_.getUsageStatsConsent(callback);
+};
+
+/**
* Show or hide daemon-specific parts of the UI.
* @return {void} Nothing.
*/
@@ -109,11 +117,12 @@ remoting.HostController.prototype.setTooltips = function() {
/**
* Registers and starts the host.
* @param {string} hostPin Host PIN.
+ * @param {boolean} consent The user's consent to crash dump reporting.
* @param {function(remoting.HostController.AsyncResult):void} callback
* callback Callback to be called when done.
* @return {void} Nothing.
*/
-remoting.HostController.prototype.start = function(hostPin, callback) {
+remoting.HostController.prototype.start = function(hostPin, consent, callback) {
/** @type {remoting.HostController} */
var that = this;
var hostName = this.plugin_.getHostName();
@@ -180,7 +189,7 @@ remoting.HostController.prototype.start = function(hostPin, callback) {
var onStartDaemon = function(result) {
onStarted(callback, result, hostName);
};
- that.plugin_.startDaemon(hostConfig, onStartDaemon);
+ that.plugin_.startDaemon(hostConfig, consent, onStartDaemon);
} else {
console.log('Failed to register the host. Status: ' + xhr.status +
' response: ' + xhr.responseText);
« no previous file with comments | « remoting/webapp/_locales/en/messages.json ('k') | remoting/webapp/host_plugin_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698