Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2940)

Unified Diff: chrome/browser/ui/ash/cast_config_delegate_chromeos.cc

Issue 1145833003: Allow the cast tray to function as expected when the installed extension is missing API methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add bug to comment Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/cast_config_delegate_chromeos.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc b/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
index 3f0b87bf5b0e8c360b6715cb9009a6aa0535477c..9873cf404c009dd69fa9d0d8da2cd80f6a693ae2 100644
--- a/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
@@ -138,8 +138,14 @@ void CastConfigDelegateChromeos::CastToReceiver(
"');");
}
-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');");
}
void CastConfigDelegateChromeos::LaunchCastOptions() {
« no previous file with comments | « chrome/browser/ui/ash/cast_config_delegate_chromeos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698