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

Issue 10790116: Have the VariationsService attempt to fetch the seed when an update is ready. (Closed)

Created:
8 years, 5 months ago by SteveT
Modified:
8 years, 4 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Have the VariationsService attempt to fetch the seed when an update is ready. Includes a unit test to exercise this functionality. BUG=138384 TEST=Ensure that Chrome makes an HTTP request to the Variations server when it receives an auto update. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150949

Patch Set 1 #

Patch Set 2 : Reset timer #

Total comments: 17

Patch Set 3 : asvit nits #

Patch Set 4 : Privatization (is ruining our healthcare) #

Total comments: 4

Patch Set 5 : Unit test #

Total comments: 14

Patch Set 6 : asvit nit 2 #

Total comments: 4

Patch Set 7 : missing ctor init #

Patch Set 8 : moved comment #

Patch Set 9 : merge to tot #

Total comments: 19

Patch Set 10 : Addressed isherman's comments #

Total comments: 2

Patch Set 11 : privatize Observe #

Patch Set 12 : merge to tot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -21 lines) Patch
M chrome/browser/metrics/variations_service.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +25 lines, -10 lines 0 comments Download
M chrome/browser/metrics/variations_service.cc View 1 2 3 4 5 6 7 8 9 8 chunks +32 lines, -11 lines 0 comments Download
M chrome/browser/metrics/variations_service_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
SteveT
PTAL.
8 years, 5 months ago (2012-07-22 22:14:28 UTC) #1
Alexei Svitkine (slow)
Would it be possible to add a test for this by making FetchVariationsSeed() virtual? http://codereview.chromium.org/10790116/diff/8001/chrome/browser/metrics/variations_service.cc ...
8 years, 5 months ago (2012-07-23 14:42:42 UTC) #2
SteveT
To be clear on your suggestion... You're suggesting I make FetchVariationsSeed virtual so I can ...
8 years, 5 months ago (2012-07-23 15:24:31 UTC) #3
Alexei Svitkine (slow)
On Mon, Jul 23, 2012 at 11:24 AM, <stevet@chromium.org> wrote: > To be clear on ...
8 years, 5 months ago (2012-07-23 15:26:05 UTC) #4
Alexei Svitkine (slow)
http://codereview.chromium.org/10790116/diff/8001/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10790116/diff/8001/chrome/browser/metrics/variations_service.cc#newcode200 chrome/browser/metrics/variations_service.cc:200: void VariationsService::Observe(int type, On 2012/07/23 15:24:31, SteveT wrote: > ...
8 years, 5 months ago (2012-07-23 15:32:13 UTC) #5
SteveT
Okay, moved the newly private methods around. I will add a unit test and ping ...
8 years, 5 months ago (2012-07-23 15:44:14 UTC) #6
SteveT
Added a unit test. Note that I had to change the Observe method a bit ...
8 years, 5 months ago (2012-07-23 20:20:51 UTC) #7
Alexei Svitkine (slow)
http://codereview.chromium.org/10790116/diff/1004/chrome/browser/metrics/variations_service.h File chrome/browser/metrics/variations_service.h (right): http://codereview.chromium.org/10790116/diff/1004/chrome/browser/metrics/variations_service.h#newcode71 chrome/browser/metrics/variations_service.h:71: void FetchVariationsSeed(); Nit: Move this below OnURLFetchComplete() so that ...
8 years, 5 months ago (2012-07-23 20:26:05 UTC) #8
Alexei Svitkine (slow)
http://codereview.chromium.org/10790116/diff/1004/chrome/browser/metrics/variations_service.h File chrome/browser/metrics/variations_service.h (right): http://codereview.chromium.org/10790116/diff/1004/chrome/browser/metrics/variations_service.h#newcode71 chrome/browser/metrics/variations_service.h:71: void FetchVariationsSeed(); On 2012/07/23 20:26:05, Alexei Svitkine wrote: > ...
8 years, 5 months ago (2012-07-23 20:27:52 UTC) #9
SteveT
Thanks for the look. Over to you. http://codereview.chromium.org/10790116/diff/4005/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10790116/diff/4005/chrome/browser/metrics/variations_service.cc#newcode178 chrome/browser/metrics/variations_service.cc:178: DCHECK(type == ...
8 years, 5 months ago (2012-07-24 14:42:57 UTC) #10
Alexei Svitkine (slow)
Almost there! http://codereview.chromium.org/10790116/diff/7006/chrome/browser/metrics/variations_service_unittest.cc File chrome/browser/metrics/variations_service_unittest.cc (right): http://codereview.chromium.org/10790116/diff/7006/chrome/browser/metrics/variations_service_unittest.cc#newcode31 chrome/browser/metrics/variations_service_unittest.cc:31: // Simulate that an auto-update is ready ...
8 years, 5 months ago (2012-07-24 14:44:49 UTC) #11
SteveT
Fixed ALL the things! http://codereview.chromium.org/10790116/diff/7006/chrome/browser/metrics/variations_service_unittest.cc File chrome/browser/metrics/variations_service_unittest.cc (right): http://codereview.chromium.org/10790116/diff/7006/chrome/browser/metrics/variations_service_unittest.cc#newcode31 chrome/browser/metrics/variations_service_unittest.cc:31: // Simulate that an auto-update ...
8 years, 5 months ago (2012-07-24 19:22:54 UTC) #12
Alexei Svitkine (slow)
LGTM
8 years, 5 months ago (2012-07-24 20:02:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10790116/15001
8 years, 4 months ago (2012-08-07 13:50:37 UTC) #14
commit-bot: I haz the power
Presubmit check for 10790116-15001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-07 13:50:39 UTC) #15
SteveT
Hey Ilya - mind taking a look for OWNERS?
8 years, 4 months ago (2012-08-07 13:55:37 UTC) #16
SteveT
Following this patch, I am going to move the variations stuff to a variations/ directory ...
8 years, 4 months ago (2012-08-07 13:59:04 UTC) #17
Ilya Sherman
LGTM once you switch from NotificationService::AllSources() to listening to notifications from a specific source. https://chromiumcodereview.appspot.com/10790116/diff/15001/chrome/browser/metrics/variations_service.cc ...
8 years, 4 months ago (2012-08-07 20:31:51 UTC) #18
SteveT
Some responses - let me know what you think. http://codereview.chromium.org/10790116/diff/15001/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): http://codereview.chromium.org/10790116/diff/15001/chrome/browser/metrics/variations_service.cc#newcode106 chrome/browser/metrics/variations_service.cc:106: ...
8 years, 4 months ago (2012-08-08 18:11:39 UTC) #19
Ilya Sherman
(Still LGTM) https://chromiumcodereview.appspot.com/10790116/diff/15001/chrome/browser/metrics/variations_service.cc File chrome/browser/metrics/variations_service.cc (right): https://chromiumcodereview.appspot.com/10790116/diff/15001/chrome/browser/metrics/variations_service.cc#newcode106 chrome/browser/metrics/variations_service.cc:106: content::NotificationService::AllSources()); On 2012/08/08 18:11:39, SteveT wrote: > ...
8 years, 4 months ago (2012-08-08 21:33:47 UTC) #20
SteveT
Thanks for the review. Will commit shortly... https://chromiumcodereview.appspot.com/10790116/diff/23001/chrome/browser/metrics/variations_service.h File chrome/browser/metrics/variations_service.h (right): https://chromiumcodereview.appspot.com/10790116/diff/23001/chrome/browser/metrics/variations_service.h#newcode64 chrome/browser/metrics/variations_service.h:64: const content::NotificationDetails& ...
8 years, 4 months ago (2012-08-09 02:39:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10790116/27001
8 years, 4 months ago (2012-08-09 20:26:14 UTC) #22
commit-bot: I haz the power
Try job failure for 10790116-27001 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-09 21:34:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10790116/27001
8 years, 4 months ago (2012-08-09 21:52:07 UTC) #24
commit-bot: I haz the power
8 years, 4 months ago (2012-08-10 00:09:08 UTC) #25
Change committed as 150949

Powered by Google App Engine
This is Rietveld 408576698