| Index: content/browser/media/media_internals.cc
|
| diff --git a/content/browser/media/media_internals.cc b/content/browser/media/media_internals.cc
|
| index f0b071a4e12fb3dda001b9506df53f42b98dec13..3f3900525f6179718cd8c0388ff0118067dcf413 100644
|
| --- a/content/browser/media/media_internals.cc
|
| +++ b/content/browser/media/media_internals.cc
|
| @@ -104,6 +104,8 @@ class AudioLogImpl : public media::AudioLog {
|
| void OnClosed(int component_id) override;
|
| void OnError(int component_id) override;
|
| void OnSetVolume(int component_id, double volume) override;
|
| + void OnSwitchOutputDevice(int component_id,
|
| + const std::string& device_id) override;
|
|
|
| // Called by MediaInternals to update the WebContents title for a stream.
|
| void SendWebContentsTitle(int component_id,
|
| @@ -189,6 +191,16 @@ void AudioLogImpl::OnSetVolume(int component_id, double volume) {
|
| kAudioLogUpdateFunction, &dict);
|
| }
|
|
|
| +void AudioLogImpl::OnSwitchOutputDevice(int component_id,
|
| + const std::string& device_id) {
|
| + base::DictionaryValue dict;
|
| + StoreComponentMetadata(component_id, &dict);
|
| + dict.SetString("device_id", device_id);
|
| + media_internals_->SendAudioLogUpdate(MediaInternals::UPDATE_IF_EXISTS,
|
| + FormatCacheKey(component_id),
|
| + kAudioLogUpdateFunction, &dict);
|
| +}
|
| +
|
| void AudioLogImpl::SendWebContentsTitle(int component_id,
|
| int render_process_id,
|
| int render_frame_id) {
|
|
|