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

Side by Side Diff: chrome/android/java/AndroidManifest.xml

Issue 2500153003: Fix broken VR transitions due to ChromeTabbedActivity not being exported. (Closed)
Patch Set: Add back changes that went missing somehow Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- 6 <!--
7 Note: This is a jinja2 template, processed at build time into the final manifest . 7 Note: This is a jinja2 template, processed at build time into the final manifest .
8 8
9 Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden 9 Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden
10 by a child template that "extends" this file. 10 by a child template that "extends" this file.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/> 46 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
47 <uses-permission android:name="android.permission.READ_SYNC_STATS"/> 47 <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
48 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 48 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
49 <uses-permission android:name="android.permission.RECORD_AUDIO"/> 49 <uses-permission android:name="android.permission.RECORD_AUDIO"/>
50 <uses-permission android:name="android.permission.USE_CREDENTIALS"/> 50 <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
51 <uses-permission android:name="android.permission.VIBRATE"/> 51 <uses-permission android:name="android.permission.VIBRATE"/>
52 <uses-permission android:name="android.permission.WAKE_LOCK"/> 52 <uses-permission android:name="android.permission.WAKE_LOCK"/>
53 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 53 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
54 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/> 54 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
55 {% set enable_vr_shell = enable_vr_shell|default(0) %} 55 {% set enable_vr_shell = enable_vr_shell|default(0) %}
56 {% if enable_vr_shell == "true" %} 56 {% set enable_webvr = enable_webvr|default(0) %}
57 {% if enable_vr_shell == "true" or enable_webvr == "true" %}
57 <!-- Required to read the paired viewer's distortion parameters. --> 58 <!-- Required to read the paired viewer's distortion parameters. -->
58 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 59 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
59 <!-- Indicates use of Android's VR-mode, available only on Android N+. --> 60 <!-- Indicates use of Android's VR-mode, available only on Android N+. -->
60 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/> 61 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/>
61 <!-- Indicates use of VR features that are available only on Daydream-ready devices. --> 62 <!-- Indicates use of VR features that are available only on Daydream-ready devices. -->
62 <uses-feature android:name="android.hardware.vr.high_performance" android:re quired="false"/> 63 <uses-feature android:name="android.hardware.vr.high_performance" android:re quired="false"/>
63 {% endif %} 64 {% endif %}
64 65
65 <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" a ndroid:protectionLevel="signature" /> 66 <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" a ndroid:protectionLevel="signature" />
66 <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKM ARK_FOLDERS" android:protectionLevel="signatureOrSystem" /> 67 <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKM ARK_FOLDERS" android:protectionLevel="signatureOrSystem" />
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 android:windowSoftInputMode="adjustResize" 341 android:windowSoftInputMode="adjustResize"
341 android:persistableMode="persistNever" 342 android:persistableMode="persistNever"
342 android:taskAffinity="" 343 android:taskAffinity=""
343 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize" 344 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize"
344 android:hardwareAccelerated="false"> 345 android:hardwareAccelerated="false">
345 </activity> 346 </activity>
346 {% endfor %} 347 {% endfor %}
347 348
348 <!-- ChromeTabbedActivity related --> 349 <!-- ChromeTabbedActivity related -->
349 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity " 350 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity "
350 android:theme="@style/TabbedModeTheme" 351 android:theme="@style/TabbedModeTheme"
351 android:exported="false" 352 android:exported="false"
352 android:windowSoftInputMode="adjustResize" 353 android:windowSoftInputMode="adjustResize"
353 android:launchMode="singleTask" 354 android:launchMode="singleTask"
354 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize" 355 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize"
355 android:hardwareAccelerated="false"> 356 android:hardwareAccelerated="false">
356 {% set enable_webvr = enable_webvr|default(0) %} 357 <!--
357 {% if enable_vr_shell == "true" or enable_webvr == "true" %} 358 See the VRChromeTabbedActivity alias below for an explanation of t his dummy intent
359 filter. We need to add these filters here as well, or non-presenti ng webVR pages will
360 trigger a daydream incompatible app message.
361 -->
358 <intent-filter> 362 <intent-filter>
359 <!-- Add a dummy action to match intent without any action. -->
360 <action android:name="org.chromium.chrome.browser.dummy.action" /> 363 <action android:name="org.chromium.chrome.browser.dummy.action" />
361 <!--
362 Daydream api categorizes an activity to three categories: Card board only, hybrid
363 or Daydream. It does so by testing if intents can be resolved by the activity
364 that requests it.
365 In Chrome, CTA is the activity that uses Daydream api and we w ant to be in hybrid
366 category. So add an intent filter that could pass Daydream tes ts here.
367 -->
368 <category android:name="com.google.intent.category.DAYDREAM" /> 364 <category android:name="com.google.intent.category.DAYDREAM" />
369 <category android:name="com.google.intent.category.CARDBOARD" /> 365 <category android:name="com.google.intent.category.CARDBOARD" />
370 </intent-filter> 366 </intent-filter>
371 {% endif %}
372 </activity> 367 </activity>
368
369 {% if enable_vr_shell == "true" or enable_webvr == "true" %}
370 <!--
371 TODO(mthiesse): Temporarily skip ChromeLauncherActivity when returni ng from Daydream
372 DON flow to avoid polluting metrics.
373 -->
374 <activity-alias android:name="org.chromium.chrome.browser.VRChromeTabbed Activity"
375 android:targetActivity="org.chromium.chrome.browser.ChromeTabbedActi vity"
376 android:exported="true"
Ted C 2016/11/16 18:07:00 Sorry, but I don't think we can/should do this. B
mthiesse 2016/11/16 18:45:12 Ah, yes thanks for pointing that out. I've switche
377 android:enableVrMode="@string/gvr_vr_mode_component">
378 <!--
379 Daydream api categorizes an activity to three categories: Cardboar d only, hybrid
380 or Daydream. It does so by testing if intents can be resolved by t he activity
381 that requests it.
382 In Chrome, CTA is the activity that uses Daydream api and we want to be in hybrid
383 category. So add an intent filter that could pass Daydream tests h ere.
384 -->
385 <intent-filter>
386 <action android:name="org.chromium.chrome.browser.dummy.action" />
387 <category android:name="com.google.intent.category.DAYDREAM" />
388 <category android:name="com.google.intent.category.CARDBOARD" />
389 </intent-filter>
390 </activity-alias>
391 {% endif %}
392
373 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2" 393 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2"
374 android:theme="@style/TabbedModeTheme" 394 android:theme="@style/TabbedModeTheme"
375 android:exported="false" 395 android:exported="false"
376 android:windowSoftInputMode="adjustResize" 396 android:windowSoftInputMode="adjustResize"
377 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2" 397 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2"
378 android:launchMode="singleTask" 398 android:launchMode="singleTask"
379 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize" 399 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize"
380 android:hardwareAccelerated="false"> 400 android:hardwareAccelerated="false">
381 </activity> 401 </activity>
382 <activity android:name="org.chromium.chrome.browser.multiwindow.MultiIns tanceChromeTabbedActivity" 402 <activity android:name="org.chromium.chrome.browser.multiwindow.MultiIns tanceChromeTabbedActivity"
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 choose the first MediaRouteController that can play it, so the orde r of the list can be important. 949 choose the first MediaRouteController that can play it, so the orde r of the list can be important.
930 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones. 950 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones.
931 The downstream manifest replaces this block, and hence replaces the list of media route 951 The downstream manifest replaces this block, and hence replaces the list of media route
932 controllers with its own list. --> 952 controllers with its own list. -->
933 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS" 953 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS"
934 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/> 954 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/>
935 955
936 {% endblock %} 956 {% endblock %}
937 </application> 957 </application>
938 </manifest> 958 </manifest>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698