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

Unified Diff: media/audio/sounds/audio_stream_handler.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/audio/sounds/audio_stream_handler.cc
diff --git a/media/audio/sounds/audio_stream_handler.cc b/media/audio/sounds/audio_stream_handler.cc
index 62235c9c778a3b676c2a5ac4fc66d56521c4c31b..56d1b94b28b18f322a487b19b48901dda409e28e 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -204,7 +204,7 @@ AudioStreamHandler::~AudioStreamHandler() {
bool AudioStreamHandler::IsInitialized() const {
DCHECK(CalledOnValidThread());
- return stream_;
+ return !!stream_;
}
bool AudioStreamHandler::Play() {

Powered by Google App Engine
This is Rietveld 408576698