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

Unified Diff: remoting/webapp/app_remoting/js/feedback_consent.js

Issue 1131853004: Include the session id in feedback logs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/app_remoting/js/feedback_consent.js
diff --git a/remoting/webapp/app_remoting/js/feedback_consent.js b/remoting/webapp/app_remoting/js/feedback_consent.js
index 1437d057c1a8b7ecd0898c58ca79edb7dfcc1427..252c5b3ead7a2bfe797d0e633891479a8038ab60 100644
--- a/remoting/webapp/app_remoting/js/feedback_consent.js
+++ b/remoting/webapp/app_remoting/js/feedback_consent.js
@@ -18,6 +18,12 @@ var hostId = '@pending';
var connectionStats = '';
/**
+ * @type {string} The most recent id for the session (unless the session is
+ * longer than 24hrs, this will be the only session id).
+ */
+var sessionId = '';
+
+/**
* @type {string} "no" => user did not request a VM reset; "yes" => VM was
* successfully reset; "failed" => user requested a reset, but it failed.
*/
@@ -59,7 +65,8 @@ function onUserInfo(email, realName) {
'&psd_hostId=' + escape(hostId) +
'&psd_abandonHost=' + escape(abandonHost) +
'&psd_crashServiceReportId=' + escape(crashServiceReportId) +
- '&psd_connectionStats=' + escape(connectionStats));
+ '&psd_connectionStats=' + escape(connectionStats) +
+ '&psd_sessionId=' + escape(sessionId));
window.close();
// If the VM was successfully abandoned, close the application.
@@ -225,6 +232,7 @@ function onWindowMessage(event) {
hostId = /** @type {string} */ (event.data['hostId']);
}
connectionStats = /** @type {string} */ (event.data['connectionStats']);
+ sessionId = /** @type {string} */ (event.data['sessionId']);
}
};

Powered by Google App Engine
This is Rietveld 408576698