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

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

Issue 2511713002: Implement Android key/value backup (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/AndroidManifest.xml
diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml
index 72f556a48ff71d5a74ba7b298d7d29f45cfee3e7..7a53df6941344d5b3fb07e46d6d639753e8e8569 100644
--- a/chrome/android/java/AndroidManifest.xml
+++ b/chrome/android/java/AndroidManifest.xml
@@ -110,15 +110,16 @@ by a child template that "extends" this file.
android:icon="@mipmap/app_icon"
android:label="@string/app_name"
android:largeHeap="false"
- android:allowBackup="false"
android:manageSpaceActivity="@string/manage_space_activity"
- android:fullBackupContent="@xml/chromebackupscheme"
+ android:supportsRtl="true"
+ {% if backup_key is defined %}
+ android:allowBackup="true"
+ android:backupAgent="org.chromium.chrome.browser.ChromeBackupAgent"
android:fullBackupOnly="false"
android:restoreAnyVersion="true"
- {% block android_backup_agent %}
- android:backupAgent="org.chromium.chrome.browser.ChromeBackupAgent"
- {% endblock %}
- android:supportsRtl="true"
+ {% else %}
+ android:allowBackup="false"
+ {% endif %}
{% if target_sdk_version|int >= 24 %}
android:networkSecurityConfig="@xml/network_security_config"
{% endif %}
@@ -134,6 +135,12 @@ by a child template that "extends" this file.
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable"
android:value="true"/>
+ {% if backup_key is defined %}
+ <!-- Backup keys are channel dependent -->
+ <meta-data android:name="com.google.android.backup.api_key"
+ android:value="{{ backup_key }}" />
+ {% endif %}
+
{% if channel in ['dev', 'canary', 'default'] %}
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
{% endif %}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698