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

Issue 1272443002: Only set precache.last_time when precache ran. (Closed)

Created:
5 years, 4 months ago by twifkak
Modified:
5 years, 4 months ago
Reviewers:
bengr, Yaron
CC:
chromium-reviews, darin-cc_chromium.org, jam, wifiprefetch-reviews_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@filter_stats
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only set precache.last_time when precache ran. Modify the prefetch run to pass a precacheStarted boolean from the C++ side to the Java side. If precacheStarted, the precache.last_time pref is set and an alarm is created for WAIT_UNTIL_NEXT_PRECACHE_MS later. Otherwise, the pref is not updated, and an alarm is set for INTERACTIVE_STATE_POLLING_PERIOD_MS later. This should reduce the possibility that a user has to wait an additional 4 hours for the prefetch run, because some precondition for prefetching wasn't yet met. BUG=309216 Committed: https://crrev.com/0100d1eef69974b4826959acf0f82cfe48f9e9e2 Cr-Commit-Position: refs/heads/master@{#342833}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Patch Set 4 : Add comments. #

Patch Set 5 : Rebase. #

Patch Set 6 : Don't retry often unless backend pending. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -80 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java View 1 2 3 4 5 3 chunks +15 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java View 1 2 3 4 5 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncher.java View 1 2 3 4 5 7 chunks +48 lines, -21 lines 1 comment Download
M chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheLauncherTest.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncherTest.java View 6 chunks +1 line, -13 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/precache/precache_launcher.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/precache/precache_launcher.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M components/precache/content/precache_manager.h View 1 2 3 4 5 4 chunks +11 lines, -4 lines 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 4 5 5 chunks +26 lines, -15 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (2 generated)
twifkak
bengr@chromium.org: Please review all changes. (Approval needed for components/precache/ specifically.) yfriedman@chromium.org: Please review changes in ...
5 years, 4 months ago (2015-08-04 03:59:39 UTC) #2
bengr
I started commenting. See below. https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java (right): https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java#newcode50 chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java:50: protected abstract void onPrecacheCompleted(boolean ...
5 years, 4 months ago (2015-08-05 23:25:35 UTC) #3
twifkak
https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java (right): https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java#newcode50 chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java:50: protected abstract void onPrecacheCompleted(boolean precacheStarted); On 2015/08/05 23:25:35, bengr ...
5 years, 4 months ago (2015-08-06 00:09:46 UTC) #4
bengr
https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java File chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java (right): https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java#newcode82 chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java:82: protected void onPrecacheCompleted(boolean precacheStarted) { On 2015/08/06 00:09:46, twifkak ...
5 years, 4 months ago (2015-08-07 18:41:57 UTC) #5
twifkak
https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java File chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java (right): https://codereview.chromium.org/1272443002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java#newcode82 chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java:82: protected void onPrecacheCompleted(boolean precacheStarted) { On 2015/08/07 18:41:57, bengr ...
5 years, 4 months ago (2015-08-07 21:48:15 UTC) #6
bengr
lgtm
5 years, 4 months ago (2015-08-10 21:48:34 UTC) #7
twifkak
Yaron: Ping.
5 years, 4 months ago (2015-08-11 01:18:28 UTC) #8
Yaron
lgtm https://codereview.chromium.org/1272443002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncher.java (right): https://codereview.chromium.org/1272443002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncher.java#newcode66 chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheServiceLauncher.java:66: // |context| needs to be the application context ...
5 years, 4 months ago (2015-08-11 13:59:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272443002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272443002/100001
5 years, 4 months ago (2015-08-11 16:25:50 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-11 17:13:52 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 17:14:34 UTC) #13
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0100d1eef69974b4826959acf0f82cfe48f9e9e2
Cr-Commit-Position: refs/heads/master@{#342833}

Powered by Google App Engine
This is Rietveld 408576698