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

Unified Diff: remoting/webapp/base/js/session_logger.js

Issue 1397463003: Report the Auth method for me2me connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 2 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/base/js/logger.js ('k') | remoting/webapp/browser_test/bump_scroll_browser_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/session_logger.js
diff --git a/remoting/webapp/base/js/session_logger.js b/remoting/webapp/base/js/session_logger.js
index 5e04be83954829a6972d929026f84d727c58456c..be7c6dc8d001e7762d023c75e5bbfa9340af2154 100644
--- a/remoting/webapp/base/js/session_logger.js
+++ b/remoting/webapp/base/js/session_logger.js
@@ -51,6 +51,8 @@ remoting.SessionLogger = function(role, writeLogEntry) {
this.hostStatusUpdateElapsedTime_;
/** @private */
this.mode_ = remoting.ChromotingEvent.Mode.ME2ME;
+ /** @private {remoting.ChromotingEvent.AuthMethod} */
+ this.authMethod_;
this.setSessionId_();
};
@@ -99,6 +101,11 @@ remoting.SessionLogger.prototype.setLogEntryMode = function(mode) {
};
/** @override {remoting.Logger} */
+remoting.SessionLogger.prototype.setAuthMethod = function(authMethod) {
+ this.authMethod_ = authMethod;
+};
+
+/** @override {remoting.Logger} */
remoting.SessionLogger.prototype.getSessionId = function() {
return this.sessionId_;
};
@@ -260,6 +267,9 @@ remoting.SessionLogger.prototype.fillEvent_ = function(entry) {
if (this.hostStatusUpdateElapsedTime_ != undefined) {
entry.host_status_update_elapsed_time = this.hostStatusUpdateElapsedTime_;
}
+ if (this.authMethod_ != undefined) {
+ entry.auth_method = this.authMethod_;
+ }
entry.host_version = this.hostVersion_;
entry.host_os = this.hostOS_;
entry.host_os_version = this.hostOSVersion_;
« no previous file with comments | « remoting/webapp/base/js/logger.js ('k') | remoting/webapp/browser_test/bump_scroll_browser_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698