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

Issue 147723010: Expose a method in VariationsService to trigger a seed fetch. (Closed)

Created:
6 years, 10 months ago by rkaplow
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Expose a method in VariationsService to trigger a seed fetch. On mobile this will launch a (slightly delayed) request, iff the seed hasn't been refreshed in the past 5 hours. On desktop this will use the currently existing method on desktop, which does not do that check. BUG=321379 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251532

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : add comment #

Total comments: 14

Patch Set 4 : Alexei comments1 #

Total comments: 16

Patch Set 5 : asvitkine comments 2 #

Patch Set 6 : asvitkine comment2-part2 #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : Couple namechanges I missed #

Patch Set 10 : New test for mobile scheduler #

Patch Set 11 : ensure onappforeground fetch doesn't trigger if start already has #

Total comments: 4

Patch Set 12 : asvitkine comments 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -2 lines) Patch
M chrome/browser/metrics/variations/variations_request_scheduler.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/metrics/variations/variations_request_scheduler.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_request_scheduler_mobile.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -0 lines 0 comments Download
A chrome/browser/metrics/variations/variations_request_scheduler_mobile_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
rkaplow
Couple notes - I have a first usage of this partway done for Android. Basically ...
6 years, 10 months ago (2014-02-12 00:33:52 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/147723010/diff/1/chrome/browser/metrics/variations/variations_service.h File chrome/browser/metrics/variations/variations_service.h (right): https://codereview.chromium.org/147723010/diff/1/chrome/browser/metrics/variations/variations_service.h#newcode58 chrome/browser/metrics/variations/variations_service.h:58: void ScheduleFetch(); I prefer if this is done similarly ...
6 years, 10 months ago (2014-02-12 16:22:47 UTC) #2
rkaplow
On 2014/02/12 16:22:47, Alexei Svitkine wrote: > https://codereview.chromium.org/147723010/diff/1/chrome/browser/metrics/variations/variations_service.h > File chrome/browser/metrics/variations/variations_service.h (right): > > https://codereview.chromium.org/147723010/diff/1/chrome/browser/metrics/variations/variations_service.h#newcode58 ...
6 years, 10 months ago (2014-02-12 17:44:40 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/147723010/diff/120001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc File chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc (right): https://codereview.chromium.org/147723010/diff/120001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc#newcode47 chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc:47: void VariationsRequestSchedulerMobile::ScheduleFetch() { What's the reason for this being ...
6 years, 10 months ago (2014-02-12 21:17:43 UTC) #4
rkaplow
https://codereview.chromium.org/147723010/diff/120001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc File chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc (right): https://codereview.chromium.org/147723010/diff/120001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc#newcode47 chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc:47: void VariationsRequestSchedulerMobile::ScheduleFetch() { On 2014/02/12 21:17:44, Alexei Svitkine wrote: ...
6 years, 10 months ago (2014-02-12 22:51:51 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/147723010/diff/190001/chrome/browser/metrics/variations/variations_request_scheduler.h File chrome/browser/metrics/variations/variations_request_scheduler.h (right): https://codereview.chromium.org/147723010/diff/190001/chrome/browser/metrics/variations/variations_request_scheduler.h#newcode30 chrome/browser/metrics/variations/variations_request_scheduler.h:30: void ForceFetch(); Why did you rename this? I found ...
6 years, 10 months ago (2014-02-13 16:13:08 UTC) #6
rkaplow
https://codereview.chromium.org/147723010/diff/190001/chrome/browser/metrics/variations/variations_request_scheduler.h File chrome/browser/metrics/variations/variations_request_scheduler.h (right): https://codereview.chromium.org/147723010/diff/190001/chrome/browser/metrics/variations/variations_request_scheduler.h#newcode30 chrome/browser/metrics/variations/variations_request_scheduler.h:30: void ForceFetch(); On 2014/02/13 16:13:08, Alexei Svitkine wrote: > ...
6 years, 10 months ago (2014-02-13 16:55:59 UTC) #7
Alexei Svitkine (slow)
Looks great, just a few more comments and I think it should be good to ...
6 years, 10 months ago (2014-02-13 17:36:22 UTC) #8
rkaplow
I'll try the desktop bots again to see if the exception will fix the failures ...
6 years, 10 months ago (2014-02-13 18:54:47 UTC) #9
Alexei Svitkine (slow)
LGTM assuming you get green bots. Thanks!
6 years, 10 months ago (2014-02-13 19:20:05 UTC) #10
rkaplow
Added the new test (and have sync merged in this patchset, sorry). Still need to ...
6 years, 10 months ago (2014-02-14 01:05:12 UTC) #11
Alexei Svitkine (slow)
LGTM, thanks! https://codereview.chromium.org/147723010/diff/830001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc File chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc (right): https://codereview.chromium.org/147723010/diff/830001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc#newcode53 chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc:53: last_request_time_ + base::TimeDelta::FromHours(kSeedFetchPeriodHours)) { Nit: Align. https://codereview.chromium.org/147723010/diff/830001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.h ...
6 years, 10 months ago (2014-02-14 19:11:51 UTC) #12
rkaplow
https://codereview.chromium.org/147723010/diff/830001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc File chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc (right): https://codereview.chromium.org/147723010/diff/830001/chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc#newcode53 chrome/browser/metrics/variations/variations_request_scheduler_mobile.cc:53: last_request_time_ + base::TimeDelta::FromHours(kSeedFetchPeriodHours)) { On 2014/02/14 19:11:51, Alexei Svitkine ...
6 years, 10 months ago (2014-02-14 19:18:04 UTC) #13
rkaplow
The CQ bit was checked by rkaplow@chromium.org
6 years, 10 months ago (2014-02-14 22:25:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkaplow@chromium.org/147723010/890001
6 years, 10 months ago (2014-02-14 22:26:40 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-15 01:12:01 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264815
6 years, 10 months ago (2014-02-15 01:12:02 UTC) #17
rkaplow1
The CQ bit was checked by rkaplow@google.com
6 years, 10 months ago (2014-02-15 01:16:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkaplow@chromium.org/147723010/890001
6 years, 10 months ago (2014-02-15 01:24:23 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 05:14:28 UTC) #20
Message was sent while issue was closed.
Change committed as 251532

Powered by Google App Engine
This is Rietveld 408576698