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

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

Issue 2451193002: Fix imcompatible app warning when insert to DayDream headset (Closed)
Patch Set: Add webvr flag check 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..52170609e4841d228b24d8f0776cbe5d674fa542 100644
--- a/chrome/android/java/AndroidManifest.xml
+++ b/chrome/android/java/AndroidManifest.xml
@@ -353,6 +353,15 @@ 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" />
Maria 2016/10/26 20:10:27 Why does a dummy name allow to match intent withou
bshe 2016/10/26 20:51:46 Based on this doc: https://developer.android.com/g
+ <category android:name="com.google.intent.category.DAYDREAM" />
Maria 2016/10/26 20:10:27 Not too familiar with this -- I have a few questio
mthiesse 2016/10/26 20:15:21 I actually just had a discussion with Biao, and we
bshe 2016/10/26 20:51:46 This won't make Chrome appear in the launcher. To
bshe 2016/10/26 20:51:46 So Daydream will try to test if their intents can
Maria 2016/10/26 21:07:24 Ok, can you add this as a comment here -- I think
bshe 2016/10/27 15:01:15 Done.
+ <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