| Index: content/browser/streams/stream_registry.cc
|
| diff --git a/content/browser/streams/stream_registry.cc b/content/browser/streams/stream_registry.cc
|
| index 7159831376c46f7d2801c4b6e56cb82305c4f448..39d24b39f5f7b505484a472b67a2a490892a3151 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;
|
| }
|
|
|