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

Issue 2504163005: Fix getting initially active trials with shared memory. (Closed)

Created:
4 years, 1 month ago by Alexei Svitkine (slow)
Modified:
4 years, 1 month ago
Reviewers:
bcwhite, lawrencewu, piman
CC:
chromium-reviews, asvitkine+watch_chromium.org, jochen (gone - plz use gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix getting initially active trials with shared memory. With the shared memory implementation, the logic for getting initially active trials was no longer valid. This change fixes that by getting the active trials from the shared memory allocator if available. BUG=666497 Committed: https://crrev.com/0cb7b5282e216024f887c9addc24b8fc5731f6f5 Cr-Commit-Position: refs/heads/master@{#433969}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : fix tests #

Patch Set 4 : Address comment. #

Patch Set 5 : Fix single process mode which is used by PhishingClassifierTest on Windows. #

Total comments: 4

Patch Set 6 : Use typedefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -5 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 3 chunks +35 lines, -2 lines 0 comments Download
M chrome/common/variations/child_process_field_trial_syncer.cc View 1 2 3 4 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/variations/child_process_field_trial_syncer_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (19 generated)
Alexei Svitkine (slow)
Noticed this during my flight while working on something else. Thought I'd just fix it. ...
4 years, 1 month ago (2016-11-17 22:33:48 UTC) #2
lawrencewu
On 2016/11/17 22:33:48, Alexei Svitkine (very slow) wrote: > Noticed this during my flight while ...
4 years, 1 month ago (2016-11-18 02:45:59 UTC) #8
lawrencewu
https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc#newcode631 base/metrics/field_trial.cc:631: DCHECK(global_->create_trials_from_command_line_called_); This function is called or can be called ...
4 years, 1 month ago (2016-11-18 16:33:11 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc#newcode631 base/metrics/field_trial.cc:631: DCHECK(global_->create_trials_from_command_line_called_); On 2016/11/18 16:33:10, lawrencewu wrote: > This function ...
4 years, 1 month ago (2016-11-18 16:35:47 UTC) #10
bcwhite
lgtm https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2504163005/diff/20001/base/metrics/field_trial.cc#newcode656 base/metrics/field_trial.cc:656: active_groups->push_back(group); push_back(std::move(group))
4 years, 1 month ago (2016-11-21 15:56:22 UTC) #11
Alexei Svitkine (slow)
Thanks. Comments addressed and fixed the tests. Some tests were not running FeatureList::CreateFromCommandLine(): - Tests ...
4 years, 1 month ago (2016-11-21 20:47:11 UTC) #17
Alexei Svitkine (slow)
(Er I meant FieldTrialList::CreateTrialsFromCommandLine() above.) On Mon, Nov 21, 2016 at 3:47 PM, <asvitkine@chromium.org> wrote: ...
4 years, 1 month ago (2016-11-21 20:49:30 UTC) #18
lawrencewu
lgtm % nits https://codereview.chromium.org/2504163005/diff/100001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2504163005/diff/100001/base/metrics/field_trial.cc#newcode640 base/metrics/field_trial.cc:640: SharedPersistentMemoryAllocator* allocator = nit: use the ...
4 years, 1 month ago (2016-11-21 20:53:18 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/2504163005/diff/100001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2504163005/diff/100001/base/metrics/field_trial.cc#newcode640 base/metrics/field_trial.cc:640: SharedPersistentMemoryAllocator* allocator = On 2016/11/21 20:53:18, lawrencewu wrote: > ...
4 years, 1 month ago (2016-11-21 21:11:19 UTC) #20
Alexei Svitkine (slow)
jochen: friendly ping
4 years, 1 month ago (2016-11-22 15:30:21 UTC) #21
Alexei Svitkine (slow)
-jochen +piman for content/ OWNERS (Hoping to land this today and I think it's getting ...
4 years, 1 month ago (2016-11-22 16:25:23 UTC) #24
Alexei Svitkine (slow)
-jochen +piman for content/ OWNERS (Hoping to land this today and I think it's getting ...
4 years, 1 month ago (2016-11-22 16:25:24 UTC) #25
piman
lgtm
4 years, 1 month ago (2016-11-22 18:51:13 UTC) #26
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/2504163005/120001
4 years, 1 month ago (2016-11-22 18:51:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/168683)
4 years, 1 month ago (2016-11-22 19:24:06 UTC) #31
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/2504163005/120001
4 years, 1 month ago (2016-11-22 20:06:18 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 1 month ago (2016-11-22 20:40:34 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 20:44:48 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0cb7b5282e216024f887c9addc24b8fc5731f6f5
Cr-Commit-Position: refs/heads/master@{#433969}

Powered by Google App Engine
This is Rietveld 408576698