Change Mute Tab to Mute Site on the Window menu on Mac

Currently, the Window menu shows "Mute Tab", which used to match the
tab dropdown's "Mute tab". However, the tab dropdown text has been
changed to "Mute site" for site muting, so we want to change the Window
menu text to "Mute Site" to match.

This should in theory be behind the SoundContentSetting feature flag,
but that's not doable in a .xib file.

Bug: 788982
Change-Id: If36c57b9fbc536d1eed95e13d23032c38da22499
Reviewed-on: https://chromium-review.googlesource.com/792299
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Mounir Lamouri <[email protected]>
Reviewed-by: Jay Civelli <[email protected]>
Commit-Queue: Tommy Steimel <[email protected]>
Cr-Commit-Position: refs/heads/master@{#520163}
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 2259941..97379dc 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -657,8 +657,8 @@
     case IDC_ROUTE_MEDIA:
       RouteMedia(browser_);
       break;
-    case IDC_WINDOW_MUTE_TAB:
-      MuteTab(browser_);
+    case IDC_WINDOW_MUTE_SITE:
+      MuteSite(browser_);
       break;
     case IDC_WINDOW_PIN_TAB:
       PinTab(browser_);
@@ -887,7 +887,7 @@
       IDC_DISTILL_PAGE, base::CommandLine::ForCurrentProcess()->HasSwitch(
                             switches::kEnableDomDistiller));
 
-  command_updater_.UpdateCommandEnabled(IDC_WINDOW_MUTE_TAB, normal_window);
+  command_updater_.UpdateCommandEnabled(IDC_WINDOW_MUTE_SITE, normal_window);
   command_updater_.UpdateCommandEnabled(IDC_WINDOW_PIN_TAB, normal_window);
 
   // Initialize other commands whose state changes based on various conditions.
@@ -965,7 +965,7 @@
   // Window management commands
   command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB,
       !browser_->is_app() && CanDuplicateTab(browser_));
-  command_updater_.UpdateCommandEnabled(IDC_WINDOW_MUTE_TAB,
+  command_updater_.UpdateCommandEnabled(IDC_WINDOW_MUTE_SITE,
                                         !browser_->is_app());
   command_updater_.UpdateCommandEnabled(IDC_WINDOW_PIN_TAB,
                                         !browser_->is_app());