Code: void CastConfigDelegateChromeos::StopCasting(const std::string& activity_id) {
   ExecuteJavaScript("backgroundSetup.stopCastMirroring('user-stop');");
 }

Commit Message: Allow the cast tray to function as expected when the installed extension is missing API methods.

BUG=489445

Review URL: https://codereview.chromium.org/1145833003

Cr-Commit-Position: refs/heads/master@{#330663}
CWE ID: CWE-79
void CastConfigDelegateChromeos::StopCasting(const std::string& activity_id) {
void CastConfigDelegateChromeos::StopCasting() {
   ExecuteJavaScript("backgroundSetup.stopCastMirroring('user-stop');");

  // TODO(jdufault): Remove this after stopCastMirroring is properly exported.
  // The current beta/release versions of the cast extension do not export
  // stopCastMirroring, so we will also try to call the minified version.
  // See crbug.com/489929.
  ExecuteJavaScript("backgroundSetup.Qu('user-stop');");
 }
