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

Unified Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 317823008: Cast: Add GeneralDescription proto to LogMetadata and populate it when (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | media/cast/logging/proto/raw_events.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_delegate.cc
diff --git a/chrome/renderer/media/cast_session_delegate.cc b/chrome/renderer/media/cast_session_delegate.cc
index 414b7de042edf9d36bd493234c7d7306a6b85719..0389467f63ea7b6d3c8ac11741b03af6d566e181 100644
--- a/chrome/renderer/media/cast_session_delegate.cc
+++ b/chrome/renderer/media/cast_session_delegate.cc
@@ -7,6 +7,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "chrome/common/chrome_version_info.h"
#include "chrome/renderer/media/cast_threads.h"
#include "chrome/renderer/media/cast_transport_sender_ipc.h"
#include "content/public/renderer/render_thread.h"
@@ -144,6 +145,12 @@ void CastSessionDelegate::GetEventLogsAndReset(
if (!extra_data.empty())
metadata.set_extra_data(extra_data);
+ media::cast::proto::GeneralDescription* gen_desc =
+ metadata.mutable_general_description();
+ chrome::VersionInfo version_info;
+ gen_desc->set_product(version_info.Name());
+ gen_desc->set_product_version(version_info.Version());
+ gen_desc->set_os(version_info.OSType());
scoped_ptr<char[]> serialized_log(new char[media::cast::kMaxSerializedBytes]);
int output_bytes;
« no previous file with comments | « no previous file | media/cast/logging/proto/raw_events.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698