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

Unified Diff: chrome/android/shell/java/AndroidManifest.xml.jinja2

Issue 928643003: Upstream Chrome for Android Cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: chrome/android/shell/java/AndroidManifest.xml.jinja2
diff --git a/chrome/android/shell/java/AndroidManifest.xml.jinja2 b/chrome/android/shell/java/AndroidManifest.xml.jinja2
index a8dde18985023968dfbac1aafa2f27978e5e4011..b2bc6345ccf4ff42d4aa8bd93ec9953af0819661 100644
--- a/chrome/android/shell/java/AndroidManifest.xml.jinja2
+++ b/chrome/android/shell/java/AndroidManifest.xml.jinja2
@@ -69,7 +69,7 @@
<category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
</intent-filter>
</activity>
-
+
<!-- The following service entries exist in order to allow us to
start more than one sandboxed process. -->
@@ -196,5 +196,30 @@
<meta-data android:name="org.chromium.chrome.browser.SERVICE_TAB_LAUNCHER"
android:value="org.chromium.chrome.shell.ChromeShellServiceTabLauncher" />
+ <!-- Activity, service, and meta-data to support casting to Chromecast -->
+
+ <!-- Expanded controller activity is displayed when the Cast Notification is clicked -->
+ <activity android:name="org.chromium.chrome.browser.media.remote.ExpandedControllerActivity"
+ android:theme="@style/MainTheme"
+ android:label="Chrome.ExpandedControllerActivity"
+ android:hardwareAccelerated="true"
+ android:launchMode="singleTask"
+ android:noHistory="true"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
+ android:excludeFromRecents="true">
+ </activity>
+
+ <service android:name="org.chromium.chrome.browser.media.remote.NotificationTransportControl$ListenerService" />
+
+ <!-- Media route controllers to use for remote playback (cast).
+ This is here, rather than in code, since it varies between upstream and downstream,
+ yet we need this list of classes in the notification service, which belongs upstream
+ and doesn't run the downstream Clank startup code. The Cast code will, for each media element,
+ choose the first MediaRouteController that can play it, so the order of the list can be important.
+ The most specific MediaRouteControllers should be listed first, followed by more generic ones -->
+ <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYERS"
+ android:value="org.chromium.chrome.browser.media.remote.DefaultMediaRouteController"/>
+
+
</application>
</manifest>

Powered by Google App Engine
This is Rietveld 408576698