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

Unified Diff: content/renderer/media/mock_media_stream_video_source.cc

Issue 2807203002: Use explicit conversion to base::Optional in MSVS::GetCurrentFormatImpl implementations. (Closed)
Patch Set: Created 3 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
Index: content/renderer/media/mock_media_stream_video_source.cc
diff --git a/content/renderer/media/mock_media_stream_video_source.cc b/content/renderer/media/mock_media_stream_video_source.cc
index 1e36c2fc0c4a068aca2aed5bf74cf81cb7917dfc..f459bf1255c5cff772233cbd0544a5b26a693d92 100644
--- a/content/renderer/media/mock_media_stream_video_source.cc
+++ b/content/renderer/media/mock_media_stream_video_source.cc
@@ -104,7 +104,7 @@ void MockMediaStreamVideoSource::StopSourceImpl() {
base::Optional<media::VideoCaptureFormat>
MockMediaStreamVideoSource::GetCurrentFormatImpl() const {
- return format_;
+ return base::Optional<media::VideoCaptureFormat>(format_);
}
void MockMediaStreamVideoSource::DeliverVideoFrame(

Powered by Google App Engine
This is Rietveld 408576698