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

Issue 50883003: Added the ability to specify AutomaticProfileResetter's evaluation program through field trials. (Closed)

Created:
7 years, 1 month ago by engedy
Modified:
7 years, 1 month ago
Visibility:
Public.

Description

Added the ability to specify AutomaticProfileResetter's evaluation program through field trials. BUG=298036 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232995

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added one more unittest. #

Patch Set 3 : Formatting nit. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -66 lines) Patch
M chrome/browser/profile_resetter/automatic_profile_resetter.h View 5 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/profile_resetter/automatic_profile_resetter.cc View 1 2 8 chunks +71 lines, -43 lines 2 comments Download
M chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc View 1 7 chunks +84 lines, -13 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
engedy
Please take a look. Changes to the unit test code are somewhat ugly in my ...
7 years, 1 month ago (2013-11-04 12:47:57 UTC) #1
vabr (Chromium)
LGTM with one optional comment. Cheers, Vaclav https://codereview.chromium.org/50883003/diff/1/chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc File chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc (right): https://codereview.chromium.org/50883003/diff/1/chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc#newcode477 chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc:477: ASSERT_EQ(base::TimeDelta::FromSeconds(55), optional: ...
7 years, 1 month ago (2013-11-04 14:16:40 UTC) #2
engedy
I have added one more unit test, please take another look. https://codereview.chromium.org/50883003/diff/1/chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc File chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc (right): ...
7 years, 1 month ago (2013-11-04 16:19:37 UTC) #3
vabr (Chromium)
Still LGTM. Took me a while to figure out why the hell 2 almost identical ...
7 years, 1 month ago (2013-11-04 16:28:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/50883003/150002
7 years, 1 month ago (2013-11-04 17:42:22 UTC) #5
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=97397
7 years, 1 month ago (2013-11-04 23:22:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/50883003/150002
7 years, 1 month ago (2013-11-05 09:56:56 UTC) #7
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=97852
7 years, 1 month ago (2013-11-05 12:24:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/50883003/150002
7 years, 1 month ago (2013-11-05 13:04:33 UTC) #9
commit-bot: I haz the power
Change committed as 232995
7 years, 1 month ago (2013-11-05 16:10:30 UTC) #10
Alexei Svitkine (slow)
Logic is fine, though could be made more efficient (see my suggestion below). (Up to ...
7 years, 1 month ago (2013-11-06 15:24:56 UTC) #11
engedy
7 years, 1 month ago (2013-11-06 16:54:58 UTC) #12
Message was sent while issue was closed.
I have prepared a follow-up CL to address this:
https://codereview.chromium.org/61883005/.

https://codereview.chromium.org/50883003/diff/150002/chrome/browser/profile_r...
File chrome/browser/profile_resetter/automatic_profile_resetter.cc (right):

https://codereview.chromium.org/50883003/diff/150002/chrome/browser/profile_r...
chrome/browser/profile_resetter/automatic_profile_resetter.cc:213: if
(DoesExperimentOverrideProgramAndHashSeed()) {
On 2013/11/06 15:24:56, Alexei Svitkine wrote:
> I would have made this call:
> 
> GetOverrideProgramAndHashSeedFromParams(&program_, &hash_seed_)
> 
> (that still returns true/false if it succeeded).
> 
> That way, you don't have to query the Variations API 3 different times (each
> call involves grabbing a lock and copying a map).

Done.

Powered by Google App Engine
This is Rietveld 408576698