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

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

Issue 2451193002: Fix imcompatible app warning when insert to DayDream headset (Closed)
Patch Set: add comment Created 4 years, 2 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/java/AndroidManifest.xml
diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml
index f8bdbdff185919cd08a8bd7e7dd5f10f18ef05ee..ce17bfccf6b11e2c6a914cd8383787a28ff5e3b0 100644
--- a/chrome/android/java/AndroidManifest.xml
+++ b/chrome/android/java/AndroidManifest.xml
@@ -353,6 +353,22 @@ by a child template that "extends" this file.
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize"
android:hardwareAccelerated="false">
+ {% set enable_webvr = enable_webvr|default(0) %}
+ {% if enable_vr_shell == "true" or enable_webvr == "true" %}
+ <intent-filter>
+ <!-- Add a dummy action to match intent without any action. -->
+ <action android:name="org.chromium.chrome.browser.dummy.action" />
+ <!--
+ Daydream api categorizes an activity to three categories: Cardboard only, hybrid
+ or Daydream. It does so by testing if intents can be resolved by the activity
+ that requests it.
+ In Chrome, CTA is the activity that uses Daydream api and we want to be in hybrid
+ category. So add an intent filter that could pass Daydream tests here.
+ -->
+ <category android:name="com.google.intent.category.DAYDREAM" />
+ <category android:name="com.google.intent.category.CARDBOARD" />
+ </intent-filter>
+ {% endif %}
</activity>
<activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity2"
android:theme="@style/TabbedModeTheme"

Powered by Google App Engine
This is Rietveld 408576698