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

Issue 2627093009: Fetch Finch seed during restore (Closed)

Created:
3 years, 11 months ago by aberent
Modified:
3 years, 11 months ago
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fetch Finch seed during restore Chrome will fetch a Finch seed during a normal first run, but since may take some time it is only done if the FRE is displayed (hence hiding the delay from the user. The Finch data is not backed up since it would probably be out of date when restored. As a result there was no Finch seed set on the first run following a restore. Fix this by fetching the finch seed during restore. This also moves fetching the Finch seed from an Android Service to a background thread (actually an AsyncTask) and gets rid of the no longer used ToS Service. BUG=679386 BUG=680829 Review-Url: https://codereview.chromium.org/2627093009 Cr-Commit-Position: refs/heads/master@{#445436} Committed: https://chromium.googlesource.com/chromium/src/+/6b91ed876fd20ba96e4c1c008d056a0ed98788b6

Patch Set 1 #

Total comments: 31

Patch Set 2 : Rebase to fix merge problems #

Patch Set 3 : Respond to review comments - tests still needed #

Total comments: 12

Patch Set 4 : Now with tests! #

Total comments: 12

Patch Set 5 : Remove VariationsSeedService, change everything to AsyncTasks #

Patch Set 6 : Fix findbugs problem #

Total comments: 36

Patch Set 7 : Fix nits and simplify VariationsSeedFetcher tests #

Total comments: 5

Patch Set 8 : Fix nits and tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+661 lines, -372 lines) Patch
M base/android/java/src/org/chromium/base/ThreadUtils.java View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 5 6 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java View 1 2 3 4 5 6 9 chunks +89 lines, -29 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java View 1 2 3 4 5 6 1 chunk +134 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/NativeInitializationController.java View 1 2 3 4 5 6 4 chunks +23 lines, -70 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java View 1 2 3 4 5 6 9 chunks +57 lines, -19 lines 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/init/AsyncInitTaskRunnerTest.java View 1 2 3 4 1 chunk +121 lines, -0 lines 0 comments Download
M components/variations/android/BUILD.gn View 1 2 3 4 1 chunk +11 lines, -2 lines 0 comments Download
A + components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java View 1 2 3 4 5 6 7 6 chunks +69 lines, -39 lines 0 comments Download
D components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java View 1 2 3 4 1 chunk +0 lines, -169 lines 0 comments Download
D components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedServiceLauncher.java View 1 2 3 4 1 chunk +0 lines, -27 lines 0 comments Download
A components/variations/android/junit/src/org/chromium/components/variations/firstrun/VariationsSeedFetcherTest.java View 1 2 3 4 5 6 1 chunk +132 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (29 generated)
aberent
Initial review. I think the code is correct and complete, but I will investigate adding ...
3 years, 11 months ago (2017-01-12 15:45:48 UTC) #2
Bernhard Bauer
Looks good! https://codereview.chromium.org/2627093009/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/2627093009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:60: // network access, but must be less ...
3 years, 11 months ago (2017-01-12 15:56:03 UTC) #7
Alexei Svitkine (slow)
Thanks for working on this! https://codereview.chromium.org/2627093009/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/2627093009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode273 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:273: }.startBackgroundTasks(false, true); Can you ...
3 years, 11 months ago (2017-01-12 16:06:28 UTC) #8
aberent
https://codereview.chromium.org/2627093009/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/2627093009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:60: // network access, but must be less than the ...
3 years, 11 months ago (2017-01-12 17:31:50 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/2627093009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java File chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java (right): https://codereview.chromium.org/2627093009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java:56: boolean variationsInitialized = prefs.getBoolean(VARIATIONS_INITIALIZED, false); On 2017/01/12 17:31:50, aberent ...
3 years, 11 months ago (2017-01-12 18:55:43 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/2627093009/diff/40001/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/2627093009/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java#newcode240 chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java:240: ThreadUtils.runOnUiThreadBlocking(new Runnable() { Seems a lot of following code ...
3 years, 11 months ago (2017-01-13 16:33:29 UTC) #15
aberent
Now ready for full review: torne@ - Please take a look, as Owner, at my ...
3 years, 11 months ago (2017-01-13 21:35:53 UTC) #16
aberent
3 years, 11 months ago (2017-01-13 21:37:04 UTC) #18
Torne
base/ LGTM
3 years, 11 months ago (2017-01-16 12:13:12 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/2627093009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java File chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java (right): https://codereview.chromium.org/2627093009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java#newcode133 chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitTaskRunner.java:133: public abstract void onSuccess(); Add Javadoc. Also, can this ...
3 years, 11 months ago (2017-01-17 13:52:13 UTC) #20
aberent
dpranke@chromium.org: Please review changes in chromium.linux.json as OWNER. One new Junit test set added. Other ...
3 years, 11 months ago (2017-01-18 22:43:59 UTC) #22
Dirk Pranke
//testing lgtm.
3 years, 11 months ago (2017-01-19 01:48:44 UTC) #29
Alexei Svitkine (slow)
Some initial comments now - but have to run to a meeting. Will review more ...
3 years, 11 months ago (2017-01-19 15:29:51 UTC) #32
Alexei Svitkine (slow)
Looks great - just some more nits. Thanks again for working on this! https://codereview.chromium.org/2627093009/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackupAgent.java File ...
3 years, 11 months ago (2017-01-19 15:57:28 UTC) #33
Bernhard Bauer
https://codereview.chromium.org/2627093009/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java File chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java (right): https://codereview.chromium.org/2627093009/diff/60001/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java#newcode337 chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java:337: when(mAgent.createAsyncInitTaskRunner(any(CountDownLatch.class))).thenAnswer(new Answer() { On 2017/01/18 22:43:58, aberent wrote: > ...
3 years, 11 months ago (2017-01-19 16:49:47 UTC) #36
aberent
In addition to answering the comments I have considerably simplified VariationsSeedFetcherTests by overriding fetching the ...
3 years, 11 months ago (2017-01-19 20:58:16 UTC) #37
Alexei Svitkine (slow)
lgtm % a couple more comments thanks! https://codereview.chromium.org/2627093009/diff/120001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java (right): https://codereview.chromium.org/2627093009/diff/120001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java#newcode80 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java:80: HttpURLConnection connection; ...
3 years, 11 months ago (2017-01-19 21:28:55 UTC) #40
Bernhard Bauer
lgtm
3 years, 11 months ago (2017-01-20 09:55:00 UTC) #43
aberent
https://codereview.chromium.org/2627093009/diff/120001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java (right): https://codereview.chromium.org/2627093009/diff/120001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java#newcode80 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java:80: HttpURLConnection connection; On 2017/01/19 21:28:55, Alexei Svitkine (slow) wrote: ...
3 years, 11 months ago (2017-01-23 18:15:19 UTC) #44
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/2627093009/140001
3 years, 11 months ago (2017-01-23 18:16:07 UTC) #47
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/6b91ed876fd20ba96e4c1c008d056a0ed98788b6
3 years, 11 months ago (2017-01-23 19:43:05 UTC) #50
jbudorick
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2648383002/ by jbudorick@chromium.org. ...
3 years, 11 months ago (2017-01-23 20:24:27 UTC) #51
Dirk Pranke
3 years, 11 months ago (2017-01-24 02:04:54 UTC) #52
Message was sent while issue was closed.
On 2017/01/23 20:24:27, jbudorick wrote:
> A revert of this CL (patchset #8 id:140001) has been created in
> https://codereview.chromium.org/2648383002/ by mailto:jbudorick@chromium.org.
> 
> The reason for reverting is: Breaking analyze step on linux_android_rel_ng..

Interesting ... analyze needed the gn_isolate_map.pyl entry, but since the test
isn't actually swarmed, it's the *only* thing that needed that entry.

Since the whitelist caused us to bypass analyze, we didn't actually catch this
in the tryjob. That seems like a bug.

Powered by Google App Engine
This is Rietveld 408576698