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

Unified Diff: cc/test/fake_video_frame_provider.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 years, 7 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: cc/test/fake_video_frame_provider.cc
diff --git a/cc/test/fake_video_frame_provider.cc b/cc/test/fake_video_frame_provider.cc
index 01455446af0d367c6345af0e03a25c1ee9e5382d..d908c9d02a136d86d9f3184319e1ce1be12e44fa 100644
--- a/cc/test/fake_video_frame_provider.cc
+++ b/cc/test/fake_video_frame_provider.cc
@@ -25,7 +25,7 @@ void FakeVideoFrameProvider::SetVideoFrameProviderClient(Client* client) {
}
bool FakeVideoFrameProvider::HasCurrentFrame() {
- return frame_;
+ return static_cast<bool>(frame_);
}
scoped_refptr<media::VideoFrame> FakeVideoFrameProvider::GetCurrentFrame() {
« no previous file with comments | « blimp/common/blob_cache/in_memory_blob_cache_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698