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

Unified Diff: chrome/browser/ui/tabs/tab_utils.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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: chrome/browser/ui/tabs/tab_utils.cc
diff --git a/chrome/browser/ui/tabs/tab_utils.cc b/chrome/browser/ui/tabs/tab_utils.cc
index a45f9ca8c6bc5f28d2d3e9c14c76589a478668f7..9ac23a0142c881d0e45ddde32788196ba1b260bc 100644
--- a/chrome/browser/ui/tabs/tab_utils.cc
+++ b/chrome/browser/ui/tabs/tab_utils.cc
@@ -33,7 +33,8 @@ bool ShouldShowRecordingIndicator(content::WebContents* contents) {
bool IsPlayingAudio(content::WebContents* contents) {
AudioStreamIndicator* audio_indicator =
- MediaCaptureDevicesDispatcher::GetInstance()->GetAudioStreamIndicator();
+ MediaCaptureDevicesDispatcher::GetInstance()->GetAudioStreamIndicator()
+ .get();
return audio_indicator->IsPlayingAudio(contents);
}

Powered by Google App Engine
This is Rietveld 408576698