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

Unified Diff: remoting/host/server_log_entry.cc

Issue 10950018: Include the host version in every log entry that the host sends to the cloud. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | remoting/host/server_log_entry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/server_log_entry.cc
diff --git a/remoting/host/server_log_entry.cc b/remoting/host/server_log_entry.cc
index dabcacf1cf70531917aef12c78f0e78217f2e716..a39b8b9d4d135236ba2b8449b0c125653facfa88 100644
--- a/remoting/host/server_log_entry.cc
+++ b/remoting/host/server_log_entry.cc
@@ -5,6 +5,7 @@
#include "remoting/host/server_log_entry.h"
#include "base/logging.h"
+#include "base/stringize_macros.h"
#include "base/sys_info.h"
#include "remoting/base/constants.h"
#include "remoting/protocol/session.h"
@@ -45,6 +46,8 @@ const char kValueOsNameChromeOS[] = "ChromeOS";
const char kKeyOsVersion[] = "os-version";
+const char kKeyHostVersion[] = "host-version";
+
const char kKeyCpu[] = "cpu";
const char kKeyConnectionType[] = "connection-type";
@@ -106,6 +109,7 @@ void ServerLogEntry::AddHostFields() {
Set(kKeyOsVersion, os_version.str());
#endif
+ Set(kKeyHostVersion, STRINGIZE(VERSION));
Set(kKeyCpu, SysInfo::CPUArchitecture());
};
« no previous file with comments | « no previous file | remoting/host/server_log_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698