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

Issue 2496693002: Implement Android key/value backup (Closed)

Created:
4 years, 1 month ago by aberent
Modified:
4 years, 1 month ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Android key/value backup This replaces our previous impmentation of (Dolly) Auto Backup. Only the preferences needed to restore the user's signin atate and sync state are backed up. BUG=661188 Committed: https://crrev.com/d56b7ec3e6e6c3236835414584f4205283beb218 Cr-Commit-Position: refs/heads/master@{#432517}

Patch Set 1 #

Total comments: 41

Patch Set 2 : Respond to bauerb@'s review comments. #

Total comments: 12

Patch Set 3 : Answer comments and add junit tests #

Patch Set 4 : Fix compile errors #

Total comments: 8

Patch Set 5 : More review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1026 lines, -572 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java View 1 2 3 4 1 chunk +221 lines, -212 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupWatcher.java View 1 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/ChromeBackupIntegrationTest.java View 1 2 3 1 chunk +0 lines, -213 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java View 1 2 3 4 1 chunk +338 lines, -140 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_backup_agent.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_backup_agent.cc View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_backup_agent_unittest.cc View 1 2 1 chunk +142 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_backup_watcher.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_backup_watcher.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
aberent
Java tests to follow before the CL lands, but seems to work so an initial ...
4 years, 1 month ago (2016-11-10 21:42:02 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/AndroidManifest.xml#newcode152 chrome/android/java/AndroidManifest.xml:152: Remove this line again? https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java (right): https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode66 ...
4 years, 1 month ago (2016-11-14 10:05:39 UTC) #7
aberent
Java tests still to do. https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/2496693002/diff/1/chrome/android/java/AndroidManifest.xml#newcode152 chrome/android/java/AndroidManifest.xml:152: On 2016/11/14 10:05:38, Bernhard ...
4 years, 1 month ago (2016-11-14 17:23:40 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/2496693002/diff/1/chrome/browser/android/chrome_backup_watcher.h File chrome/browser/android/chrome_backup_watcher.h (right): https://codereview.chromium.org/2496693002/diff/1/chrome/browser/android/chrome_backup_watcher.h#newcode21 chrome/browser/android/chrome_backup_watcher.h:21: // Watch the preferences that we backup using Android ...
4 years, 1 month ago (2016-11-14 18:02:04 UTC) #9
aberent
https://codereview.chromium.org/2496693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java (right): https://codereview.chromium.org/2496693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode70 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:70: in.close(); On 2016/11/14 18:02:04, Bernhard Bauer wrote: > Hrmph, ...
4 years, 1 month ago (2016-11-15 19:39:51 UTC) #12
aberent
git cl upload problems have gone away. CL now complete, please review with view to ...
4 years, 1 month ago (2016-11-16 10:25:22 UTC) #19
Bernhard Bauer
Mostly small things; Rewriting the mock could potentially be done in a followup CL. https://codereview.chromium.org/2496693002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java ...
4 years, 1 month ago (2016-11-16 12:29:18 UTC) #22
aberent
https://codereview.chromium.org/2496693002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java (right): https://codereview.chromium.org/2496693002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode76 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:76: Log.e(TAG, "Unexpected ClassNotFound exception reading backup data.", e); On ...
4 years, 1 month ago (2016-11-16 14:32:53 UTC) #23
Bernhard Bauer
lgtm
4 years, 1 month ago (2016-11-16 15:24:48 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2496693002/120001
4 years, 1 month ago (2016-11-16 15:42:12 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 1 month ago (2016-11-16 16:44:03 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 16:47:24 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d56b7ec3e6e6c3236835414584f4205283beb218
Cr-Commit-Position: refs/heads/master@{#432517}

Powered by Google App Engine
This is Rietveld 408576698