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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/tabs/tab_utils.h" 5 #include "chrome/browser/ui/tabs/tab_utils.h"
6 6
7 #include "chrome/browser/media/audio_stream_indicator.h" 7 #include "chrome/browser/media/audio_stream_indicator.h"
8 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 8 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
9 #include "chrome/browser/media/media_stream_capture_indicator.h" 9 #include "chrome/browser/media/media_stream_capture_indicator.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 15 matching lines...) Expand all
26 GetMediaStreamCaptureIndicator(); 26 GetMediaStreamCaptureIndicator();
27 // The projecting indicator takes precedence over the recording indicator, but 27 // The projecting indicator takes precedence over the recording indicator, but
28 // if we are projecting and we don't handle the projecting case we want to 28 // if we are projecting and we don't handle the projecting case we want to
29 // still show the recording indicator. 29 // still show the recording indicator.
30 return indicator->IsCapturingUserMedia(contents) || 30 return indicator->IsCapturingUserMedia(contents) ||
31 indicator->IsBeingMirrored(contents); 31 indicator->IsBeingMirrored(contents);
32 } 32 }
33 33
34 bool IsPlayingAudio(content::WebContents* contents) { 34 bool IsPlayingAudio(content::WebContents* contents) {
35 AudioStreamIndicator* audio_indicator = 35 AudioStreamIndicator* audio_indicator =
36 MediaCaptureDevicesDispatcher::GetInstance()->GetAudioStreamIndicator(); 36 MediaCaptureDevicesDispatcher::GetInstance()->GetAudioStreamIndicator()
37 .get();
37 return audio_indicator->IsPlayingAudio(contents); 38 return audio_indicator->IsPlayingAudio(contents);
38 } 39 }
39 40
40 } // namespace chrome 41 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698