Commit d578dfe5 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[Code health] Use defined type in MediaValueCached::CrossThreadCopier

In this template, we defined MediaValuesCached::MediaValuesCachedData to
be Type, so after that definition, we should just use Type instead of
MediaValuesCached::MediaValuesCachedData.

This CL does not introduce behavior change.

Bug: None
Change-Id: I7337cf2a1d87aeecc8ff1048e1a666753b0166c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643887Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#666073}
parent 4ce22bf6
...@@ -113,9 +113,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues { ...@@ -113,9 +113,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues {
template <> template <>
struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> {
typedef MediaValuesCached::MediaValuesCachedData Type; typedef MediaValuesCached::MediaValuesCachedData Type;
static Type Copy(const MediaValuesCached::MediaValuesCachedData& data) { static Type Copy(const Type& data) { return data.DeepCopy(); }
return data.DeepCopy();
}
}; };
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment