| Index: chrome/browser/media/media_internals.cc
|
| diff --git a/chrome/browser/media/media_internals.cc b/chrome/browser/media/media_internals.cc
|
| index 3d90cc39607aa3a982ea6ed7406dd5230f8b8f0f..559a2222e33cc635562ea3d418ede5b7ff5e1b18 100644
|
| --- a/chrome/browser/media/media_internals.cc
|
| +++ b/chrome/browser/media/media_internals.cc
|
| @@ -69,11 +69,9 @@ void MediaInternals::OnCaptureDevicesOpened(
|
| int render_view_id,
|
| const content::MediaStreamDevices& devices) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| - if (!media_stream_capture_indicator_.get())
|
| - media_stream_capture_indicator_ = new MediaStreamCaptureIndicator();
|
| - media_stream_capture_indicator_->CaptureDevicesOpened(render_process_id,
|
| - render_view_id,
|
| - devices);
|
| + media_stream_capture_indicator()->CaptureDevicesOpened(render_process_id,
|
| + render_view_id,
|
| + devices);
|
| }
|
|
|
| void MediaInternals::OnCaptureDevicesClosed(
|
| @@ -81,9 +79,9 @@ void MediaInternals::OnCaptureDevicesClosed(
|
| int render_view_id,
|
| const content::MediaStreamDevices& devices) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| - media_stream_capture_indicator_->CaptureDevicesClosed(render_process_id,
|
| - render_view_id,
|
| - devices);
|
| + media_stream_capture_indicator()->CaptureDevicesClosed(render_process_id,
|
| + render_view_id,
|
| + devices);
|
| }
|
|
|
| void MediaInternals::OnMediaRequestStateChanged(
|
| @@ -113,7 +111,9 @@ void MediaInternals::SendEverything() {
|
| SendUpdate("media.onReceiveEverything", &data_);
|
| }
|
|
|
| -MediaInternals::MediaInternals() {}
|
| +MediaInternals::MediaInternals()
|
| + : media_stream_capture_indicator_(new MediaStreamCaptureIndicator()) {
|
| +}
|
|
|
| void MediaInternals::UpdateAudioStream(
|
| void* host, int stream_id, const std::string& property, Value* value) {
|
|
|