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

Unified Diff: media/cast/cast_environment.h

Issue 506683002: Remove implicit conversions from scoped_refptr to T* in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: media/cast/cast_environment.h
diff --git a/media/cast/cast_environment.h b/media/cast/cast_environment.h
index 1549747ee2237631256bf870ea3e382254e4fca3..d3c9474fa3f54eff7704699d79715dbf57a3c53c 100644
--- a/media/cast/cast_environment.h
+++ b/media/cast/cast_environment.h
@@ -64,13 +64,9 @@ class CastEnvironment : public base::RefCountedThreadSafe<CastEnvironment> {
scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner(
ThreadId identifier) const;
- bool HasAudioThread() {
- return audio_thread_proxy_ ? true : false;
- }
+ bool HasAudioThread() { return audio_thread_proxy_.get() ? true : false; }
- bool HasVideoThread() {
- return video_thread_proxy_ ? true : false;
- }
+ bool HasVideoThread() { return video_thread_proxy_.get() ? true : false; }
protected:
virtual ~CastEnvironment();

Powered by Google App Engine
This is Rietveld 408576698