Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 <uses-permission android:name="android.permission.GET_ACCOUNTS"/> | 43 <uses-permission android:name="android.permission.GET_ACCOUNTS"/> |
| 44 <uses-permission android:name="android.permission.INTERNET"/> | 44 <uses-permission android:name="android.permission.INTERNET"/> |
| 45 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/> | 45 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/> |
| 46 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> | 46 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> |
| 47 <uses-permission android:name="android.permission.NFC"/> | 47 <uses-permission android:name="android.permission.NFC"/> |
| 48 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | 48 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
| 49 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/> | 49 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/> |
| 50 <uses-permission android:name="android.permission.READ_SYNC_STATS"/> | 50 <uses-permission android:name="android.permission.READ_SYNC_STATS"/> |
| 51 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | 51 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| 52 <uses-permission android:name="android.permission.RECORD_AUDIO"/> | 52 <uses-permission android:name="android.permission.RECORD_AUDIO"/> |
| 53 <uses-permission android:name="android.permission.REORDER_TASKS"/> | |
| 53 <uses-permission android:name="android.permission.USE_CREDENTIALS"/> | 54 <uses-permission android:name="android.permission.USE_CREDENTIALS"/> |
| 54 <uses-permission android:name="android.permission.VIBRATE"/> | 55 <uses-permission android:name="android.permission.VIBRATE"/> |
| 55 <uses-permission android:name="android.permission.WAKE_LOCK"/> | 56 <uses-permission android:name="android.permission.WAKE_LOCK"/> |
| 56 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | 57 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
| 57 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/> | 58 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/> |
| 58 {% set enable_vr = enable_vr|default(0) %} | 59 {% set enable_vr = enable_vr|default(0) %} |
| 59 {% if enable_vr == "true" %} | 60 {% if enable_vr == "true" %} |
| 60 <!-- Indicates use of Android's VR-mode, available only on Android N+. --> | 61 <!-- Indicates use of Android's VR-mode, available only on Android N+. --> |
| 61 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/> | 62 <uses-feature android:name="android.software.vr.mode" android:required="fals e"/> |
| 62 <!-- Indicates use of VR features that are available only on Daydream-ready devices. --> | 63 <!-- Indicates use of VR features that are available only on Daydream-ready devices. --> |
| 63 <uses-feature android:name="android.hardware.vr.high_performance" android:re quired="false"/> | 64 <uses-feature android:name="android.hardware.vr.high_performance" android:re quired="false"/> |
| 64 {% endif %} | 65 {% endif %} |
| 65 | 66 |
| 66 <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" a ndroid:protectionLevel="signature" /> | 67 <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" a ndroid:protectionLevel="signature" /> |
| 67 <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKM ARK_FOLDERS" android:protectionLevel="signatureOrSystem" /> | 68 <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKM ARK_FOLDERS" android:protectionLevel="signatureOrSystem" /> |
| 68 <permission android:name="{{ manifest_package }}.TOS_ACKED" android:protecti onLevel="signatureOrSystem" /> | 69 <permission android:name="{{ manifest_package }}.TOS_ACKED" android:protecti onLevel="signatureOrSystem" /> |
| 69 <!-- Only chrome can receive the messages and registration result --> | 70 <!-- Only chrome can receive the messages and registration result --> |
| 70 <permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE" | 71 <permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE" |
| 71 android:protectionLevel="signature" /> | 72 android:protectionLevel="signature" /> |
| 72 <permission android:name="{{ manifest_package }}.permission.DEBUG" | 73 <permission android:name="{{ manifest_package }}.permission.DEBUG" |
| 73 android:label="Debug web pages" | 74 android:label="Debug web pages" |
| 74 android:permissionGroup="android.permission-group.DEVELOPMENT_TO OLS" | 75 android:permissionGroup="android.permission-group.DEVELOPMENT_TO OLS" |
| 75 android:protectionLevel="signature" /> | 76 android:protectionLevel="signature" /> |
| 77 <!-- Only chrome can receive the vr entry result --> | |
| 78 <permission android:name="{{ manifest_package }}.permission.VR_ENTRY" | |
| 79 android:protectionLevel="signature" /> | |
| 76 | 80 |
| 77 <uses-permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE " /> | 81 <uses-permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE " /> |
| 78 <uses-permission android:name="{{ manifest_package }}.permission.READ_WRITE_ BOOKMARK_FOLDERS" /> | 82 <uses-permission android:name="{{ manifest_package }}.permission.READ_WRITE_ BOOKMARK_FOLDERS" /> |
| 79 <uses-permission android:name="{{ manifest_package }}.TOS_ACKED" /> | 83 <uses-permission android:name="{{ manifest_package }}.TOS_ACKED" /> |
| 84 <uses-permission android:name="{{ manifest_package }}.permission.VR_ENTRY" / > | |
|
mthiesse
2017/04/06 21:50:40
Note that this also requires a change to third_par
| |
| 80 | 85 |
| 81 <uses-permission android:name="com.chrome.permission.DEVICE_EXTRAS" /> | 86 <uses-permission android:name="com.chrome.permission.DEVICE_EXTRAS" /> |
| 82 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_B OOKMARKS"/> | 87 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_B OOKMARKS"/> |
| 83 <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_ BOOKMARKS"/> | 88 <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_ BOOKMARKS"/> |
| 84 <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" / > | 89 <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" / > |
| 85 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORT CUT"/> | 90 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORT CUT"/> |
| 86 | 91 |
| 87 <uses-permission android:name="com.google.android.apps.now.CURRENT_ACCOUNT_A CCESS" /> | 92 <uses-permission android:name="com.google.android.apps.now.CURRENT_ACCOUNT_A CCESS" /> |
| 88 | 93 |
| 89 {% block extra_uses_permissions %} | 94 {% block extra_uses_permissions %} |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 358 android:exported="false" | 363 android:exported="false" |
| 359 android:windowSoftInputMode="adjustResize" | 364 android:windowSoftInputMode="adjustResize" |
| 360 android:launchMode="singleTask" | 365 android:launchMode="singleTask" |
| 361 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize|uiMode" | 366 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize|uiMode" |
| 362 android:hardwareAccelerated="false" | 367 android:hardwareAccelerated="false" |
| 363 {# We can only use blocks once in Jinja, for future substitutions we use | 368 {# We can only use blocks once in Jinja, for future substitutions we use |
| 364 self.supports_video_persistence(). #} | 369 self.supports_video_persistence(). #} |
| 365 {% block supports_video_persistence %} | 370 {% block supports_video_persistence %} |
| 366 {% endblock %} | 371 {% endblock %} |
| 367 > | 372 > |
| 368 <!-- | |
| 369 See the VRChromeTabbedActivity alias below for an explanation of t his dummy intent | |
| 370 filter. We need to add these filters here as well, or non-presenti ng webVR pages will | |
| 371 trigger a daydream incompatible app message. | |
| 372 --> | |
| 373 <intent-filter> | |
| 374 <action android:name="org.chromium.chrome.browser.dummy.action" /> | |
| 375 <category android:name="com.google.intent.category.DAYDREAM" /> | |
| 376 <category android:name="com.google.intent.category.CARDBOARD" /> | |
| 377 </intent-filter> | |
| 378 </activity> | 373 </activity> |
| 379 | |
| 380 {% if enable_vr == "true" %} | |
| 381 <!-- | |
| 382 TODO(mthiesse): Temporarily skip ChromeLauncherActivity when returni ng from Daydream | |
| 383 DON flow to avoid polluting metrics. | |
| 384 --> | |
| 385 <activity-alias android:name="org.chromium.chrome.browser.VRChromeTabbed Activity" | |
| 386 android:targetActivity="org.chromium.chrome.browser.ChromeTabbedActi vity" | |
| 387 android:enableVrMode="@string/gvr_vr_mode_component"> | |
| 388 <!-- | |
| 389 Daydream api categorizes an activity to three categories: Cardboar d only, hybrid | |
| 390 or Daydream. It does so by testing if intents can be resolved by t he activity | |
| 391 that requests it. | |
| 392 In Chrome, CTA is the activity that uses Daydream api and we want to be in hybrid | |
| 393 category. So add an intent filter that could pass Daydream tests h ere. | |
| 394 --> | |
| 395 <intent-filter> | |
| 396 <action android:name="org.chromium.chrome.browser.dummy.action" /> | |
| 397 <category android:name="com.google.intent.category.DAYDREAM" /> | |
| 398 <category android:name="com.google.intent.category.CARDBOARD" /> | |
| 399 </intent-filter> | |
| 400 </activity-alias> | |
| 401 {% endif %} | |
| 402 | |
| 403 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2" | 374 <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity 2" |
| 404 android:theme="@style/TabbedModeTheme" | 375 android:theme="@style/TabbedModeTheme" |
| 405 android:exported="false" | 376 android:exported="false" |
| 406 android:windowSoftInputMode="adjustResize" | 377 android:windowSoftInputMode="adjustResize" |
| 407 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2" | 378 android:taskAffinity="{{ manifest_package }}.ChromeTabbedActivity2" |
| 408 android:launchMode="singleTask" | 379 android:launchMode="singleTask" |
| 409 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize|uiMode" | 380 android:configChanges="orientation|keyboardHidden|keyboard|screenSi ze|mcc|mnc|screenLayout|smallestScreenSize|uiMode" |
| 410 android:hardwareAccelerated="false" | 381 android:hardwareAccelerated="false" |
| 411 {{ self.supports_video_persistence() }} | 382 {{ self.supports_video_persistence() }} |
| 412 > | 383 > |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 623 | 594 |
| 624 <!-- Activity for dispatching intents to Instant Apps. --> | 595 <!-- Activity for dispatching intents to Instant Apps. --> |
| 625 <activity | 596 <activity |
| 626 android:name="org.chromium.chrome.browser.instantapps.AuthenticatedP roxyActivity" | 597 android:name="org.chromium.chrome.browser.instantapps.AuthenticatedP roxyActivity" |
| 627 android:exported="false" | 598 android:exported="false" |
| 628 android:theme="@android:style/Theme.NoDisplay" | 599 android:theme="@android:style/Theme.NoDisplay" |
| 629 android:noHistory="true" | 600 android:noHistory="true" |
| 630 android:excludeFromRecents="true"> | 601 android:excludeFromRecents="true"> |
| 631 </activity> | 602 </activity> |
| 632 | 603 |
| 604 {% if enable_vr == "true" %} | |
| 605 <!-- Activity for dispatching intents to VR-enabled ChromeActivitys. Thi s is necessary | |
| 606 because we can't return to CCT via a pendingIntent, which is how Da ydream normally | |
| 607 launches an app after the DON flow. --> | |
| 608 <activity android:name="org.chromium.chrome.browser.vr_shell.VrProxyActi vity" | |
| 609 android:exported="false" | |
| 610 android:theme="@android:style/Theme.NoDisplay" | |
| 611 android:noHistory="true" | |
| 612 android:excludeFromRecents="true" | |
| 613 android:relinquishTaskIdentity="true" | |
| 614 android:taskAffinity="" | |
| 615 android:configChanges="orientation|keyboardHidden|keyboard|screenSiz e|mcc|mnc|screenLayout|smallestScreenSize|uiMode" > | |
| 616 android:launchMode="singleInstance"> | |
| 617 <intent-filter> | |
| 618 <action android:name="org.chromium.chrome.browser.dummy.action" /> | |
| 619 <category android:name="com.google.intent.category.DAYDREAM" /> | |
| 620 <category android:name="com.google.intent.category.CARDBOARD" /> | |
| 621 </intent-filter> | |
| 622 </activity> | |
| 623 {% endif %} | |
| 624 | |
| 633 <!-- Service for handling Nearby Messages --> | 625 <!-- Service for handling Nearby Messages --> |
| 634 <service android:name="org.chromium.chrome.browser.physicalweb.NearbyMes sageIntentService" | 626 <service android:name="org.chromium.chrome.browser.physicalweb.NearbyMes sageIntentService" |
| 635 android:exported="false" /> | 627 android:exported="false" /> |
| 636 | 628 |
| 637 <!-- This activity is to expose the PhysicalWeb Share option via the gen eric Android share action. --> | 629 <!-- This activity is to expose the PhysicalWeb Share option via the gen eric Android share action. --> |
| 638 <activity | 630 <activity |
| 639 android:name="org.chromium.chrome.browser.physicalweb.PhysicalWebSha reActivity" | 631 android:name="org.chromium.chrome.browser.physicalweb.PhysicalWebSha reActivity" |
| 640 android:icon="@drawable/physical_web_notification_large" | 632 android:icon="@drawable/physical_web_notification_large" |
| 641 android:label="@string/physical_web_share_activity_title" | 633 android:label="@string/physical_web_share_activity_title" |
| 642 android:enabled="false" | 634 android:enabled="false" |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1007 choose the first MediaRouteController that can play it, so the orde r of the list can be important. | 999 choose the first MediaRouteController that can play it, so the orde r of the list can be important. |
| 1008 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones. | 1000 The most specific MediaRouteControllers should be listed first, fol lowed by more generic ones. |
| 1009 The downstream manifest replaces this block, and hence replaces the list of media route | 1001 The downstream manifest replaces this block, and hence replaces the list of media route |
| 1010 controllers with its own list. --> | 1002 controllers with its own list. --> |
| 1011 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS" | 1003 <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYE RS" |
| 1012 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/> | 1004 android:value="org.chromium.chrome.browser.media.remote.DefaultMedia RouteController"/> |
| 1013 | 1005 |
| 1014 {% endblock %} | 1006 {% endblock %} |
| 1015 </application> | 1007 </application> |
| 1016 </manifest> | 1008 </manifest> |
| OLD | NEW |