| Index: chrome/browser/ui/tabs/tab_strip_model.cc
|
| diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc
|
| index 5fa230a0174e3ee1b4c84045ade31f89bf38709b..4caf68e637d7954d124ab35a594a584ab34ee05f 100644
|
| --- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
| +++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
| @@ -1038,14 +1038,16 @@ void TabStripModel::ExecuteContextMenuCommand(
|
|
|
| case CommandToggleTabAudioMuted: {
|
| const std::vector<int>& indices = GetIndicesForCommand(context_index);
|
| - const bool mute = !chrome::AreAllTabsMuted(*this, indices);
|
| - if (mute)
|
| + const bool muted = !chrome::AreAllTabsMuted(*this, indices);
|
| + if (muted)
|
| content::RecordAction(UserMetricsAction("TabContextMenu_MuteTabs"));
|
| else
|
| content::RecordAction(UserMetricsAction("TabContextMenu_UnmuteTabs"));
|
| for (std::vector<int>::const_iterator i = indices.begin();
|
| i != indices.end(); ++i) {
|
| - chrome::SetTabAudioMuted(GetWebContentsAt(*i), mute);
|
| + chrome::SetTabAudioMuted(GetWebContentsAt(*i),
|
| + muted,
|
| + chrome::kUserMuteToggleCause);
|
| }
|
| break;
|
| }
|
|
|