summaryrefslogtreecommitdiffstats
path: root/content/browser/streams/stream_registry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/streams/stream_registry.cc')
-rw-r--r--content/browser/streams/stream_registry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/streams/stream_registry.cc b/content/browser/streams/stream_registry.cc
index 7159831..39d24b3 100644
--- a/content/browser/streams/stream_registry.cc
+++ b/content/browser/streams/stream_registry.cc
@@ -16,7 +16,7 @@ StreamRegistry::~StreamRegistry() {
void StreamRegistry::RegisterStream(scoped_refptr<Stream> stream) {
DCHECK(CalledOnValidThread());
- DCHECK(stream);
+ DCHECK(stream.get());
DCHECK(!stream->url().is_empty());
streams_[stream->url()] = stream;
}
@@ -33,7 +33,7 @@ scoped_refptr<Stream> StreamRegistry::GetStream(const GURL& url) {
bool StreamRegistry::CloneStream(const GURL& url, const GURL& src_url) {
DCHECK(CalledOnValidThread());
scoped_refptr<Stream> stream(GetStream(src_url));
- if (stream) {
+ if (stream.get()) {
streams_[url] = stream;
return true;
}