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

Unified Diff: content/renderer/media/webrtc/media_stream_track_metrics.cc

Issue 1099453002: base: Simplify the construction of MD5Digest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 8 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 | « components/visitedlink/common/visitedlink_common.cc ('k') | net/http/http_auth_handler_ntlm_portable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/media_stream_track_metrics.cc
diff --git a/content/renderer/media/webrtc/media_stream_track_metrics.cc b/content/renderer/media/webrtc/media_stream_track_metrics.cc
index 0ec4444582b1e07b59ce5d465bfb7a6187b69cf0..41b11b1908e5d64a7b7e380eb2b0fd7cb3fae88a 100644
--- a/content/renderer/media/webrtc/media_stream_track_metrics.cc
+++ b/content/renderer/media/webrtc/media_stream_track_metrics.cc
@@ -389,8 +389,8 @@ uint64 MediaStreamTrackMetrics::MakeUniqueIdImpl(uint64 pc_id,
base::MD5Digest digest;
base::MD5Final(&digest, &ctx);
- static_assert(sizeof(digest.a) > sizeof(uint64), "need a bigger digest");
- return *reinterpret_cast<uint64*>(digest.a);
+ static_assert(sizeof(digest) > sizeof(uint64), "need a bigger digest");
+ return *reinterpret_cast<uint64*>(digest);
}
uint64 MediaStreamTrackMetrics::MakeUniqueId(const std::string& track_id,
« no previous file with comments | « components/visitedlink/common/visitedlink_common.cc ('k') | net/http/http_auth_handler_ntlm_portable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698