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

Issue 2546653002: Store and retrieve features from shared memory (Closed)

Created:
4 years ago by lawrencewu
Modified:
4 years ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store and retrieve features from shared memory If using shared memory, stores base::Features in the field trial allocator (under a different type defined in FeatureList) when spawning the first new process. When a child process is created, it will first try to get initialized from shared memory. If that doesn't work, it'll fallback to the command line. BUG=661224 Committed: https://crrev.com/5e03cd3432b1f7904a11a94766956e8871795d9f Cr-Commit-Position: refs/heads/master@{#436311}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments and fallback to command line. #

Total comments: 6

Patch Set 3 : Address comments and write unittest #

Total comments: 5

Patch Set 4 : asvitkine@ comments #

Total comments: 20

Patch Set 5 : complete unit test #

Patch Set 6 : fix some tests #

Patch Set 7 : git rebase-update #

Patch Set 8 : try fixing InstantiateAllocator on ios-simulator #

Patch Set 9 : ifdef InstantiateAllocator test out for ios #

Total comments: 4

Patch Set 10 : address comment and remove ios ifdef #

Patch Set 11 : add some logging statements #

Patch Set 12 : add some more logging #

Patch Set 13 : fix nit and use scoped_feature_list #

Patch Set 14 : removing log statements #

Total comments: 7

Patch Set 15 : address nits #

Patch Set 16 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -21 lines) Patch
M base/feature_list.h View 1 2 3 4 4 chunks +13 lines, -0 lines 0 comments Download
M base/feature_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +89 lines, -0 lines 0 comments Download
M base/feature_list_unittest.cc View 1 2 3 4 2 chunks +65 lines, -0 lines 0 comments Download
M base/metrics/field_trial.h View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +51 lines, -5 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +21 lines, -2 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 1 chunk +3 lines, -11 lines 0 comments Download

Messages

Total messages: 62 (34 generated)
lawrencewu
self-review https://codereview.chromium.org/2546653002/diff/1/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/1/base/feature_list.cc#newcode65 base/feature_list.cc:65: What we probably wanna do here is try ...
4 years ago (2016-12-01 02:39:48 UTC) #1
lawrencewu
Address self-comments. https://codereview.chromium.org/2546653002/diff/1/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/1/base/feature_list.cc#newcode65 base/feature_list.cc:65: On 2016/12/01 02:39:48, lawrencewu wrote: > What ...
4 years ago (2016-12-01 18:47:11 UTC) #2
lawrencewu
https://codereview.chromium.org/2546653002/diff/20001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/20001/base/feature_list.cc#newcode33 base/feature_list.cc:33: struct FeatureEntry { Write a docstring for this struct. ...
4 years ago (2016-12-01 18:50:38 UTC) #7
lawrencewu
address self-comments https://codereview.chromium.org/2546653002/diff/20001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/20001/base/feature_list.cc#newcode33 base/feature_list.cc:33: struct FeatureEntry { On 2016/12/01 18:50:38, lawrencewu ...
4 years ago (2016-12-01 19:30:56 UTC) #13
lawrencewu
asvitkine@, bcwhite@: PTAL, thanks.
4 years ago (2016-12-01 19:31:32 UTC) #15
Alexei Svitkine (slow)
Some initial style comments. Will take a look more in a bit. https://codereview.chromium.org/2546653002/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc ...
4 years ago (2016-12-01 19:39:22 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc#newcode40 base/feature_list.cc:40: // Specifies whether a feature override enables or disables ...
4 years ago (2016-12-01 20:05:52 UTC) #17
bcwhite
https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc#newcode40 base/feature_list.cc:40: // Specifies whether a feature override enables or disables ...
4 years ago (2016-12-01 20:15:15 UTC) #18
lawrencewu
Address comments. https://codereview.chromium.org/2546653002/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2546653002/diff/40001/base/metrics/field_trial.cc#newcode186 base/metrics/field_trial.cc:186: void AddFeatureAndFieldTrialFlags(CommandLine* cmd_line, On 2016/12/01 19:39:22, Alexei ...
4 years ago (2016-12-02 19:24:46 UTC) #31
bcwhite
https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/60001/base/feature_list.cc#newcode59 base/feature_list.cc:59: if (!pickle_iter.ReadStringPiece(trial_name)) On 2016/12/02 19:24:46, lawrencewu wrote: > On ...
4 years ago (2016-12-02 19:34:57 UTC) #32
Alexei Svitkine (slow)
https://codereview.chromium.org/2546653002/diff/160001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2546653002/diff/160001/base/metrics/field_trial.cc#newcode895 base/metrics/field_trial.cc:895: return AddFeatureAndFieldTrialFlags(enable_features_switch, The function return value is void - ...
4 years ago (2016-12-02 20:14:28 UTC) #35
lawrencewu
Address comments. https://codereview.chromium.org/2546653002/diff/160001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2546653002/diff/160001/base/metrics/field_trial.cc#newcode895 base/metrics/field_trial.cc:895: return AddFeatureAndFieldTrialFlags(enable_features_switch, On 2016/12/02 20:14:28, Alexei Svitkine ...
4 years ago (2016-12-02 20:36:32 UTC) #36
Alexei Svitkine (slow)
lgtm
4 years ago (2016-12-02 20:50:22 UTC) #39
lawrencewu
piman@: mind taking a look at content?
4 years ago (2016-12-02 20:53:56 UTC) #41
piman
First time I've heard about this new feature - can you describe how the shared ...
4 years ago (2016-12-02 21:20:36 UTC) #42
lawrencewu
On 2016/12/02 21:20:36, piman wrote: > First time I've heard about this new feature - ...
4 years ago (2016-12-02 21:28:42 UTC) #43
lawrencewu
On 2016/12/02 21:28:42, lawrencewu wrote: > On 2016/12/02 21:20:36, piman wrote: > > First time ...
4 years ago (2016-12-02 21:30:12 UTC) #44
piman
https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc#newcode42 base/feature_list.cc:42: uint32_t override_state; Do you intend to modify this field ...
4 years ago (2016-12-02 22:29:27 UTC) #47
lawrencewu
Address comments. https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc#newcode42 base/feature_list.cc:42: uint32_t override_state; On 2016/12/02 22:29:26, piman wrote: ...
4 years ago (2016-12-02 22:51:48 UTC) #48
Alexei Svitkine (slow)
It can be modified post making it iterable but the design is such that there ...
4 years ago (2016-12-02 23:01:29 UTC) #49
piman
LGTM with the comment below. https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/2546653002/diff/260001/base/feature_list.cc#newcode42 base/feature_list.cc:42: uint32_t override_state; On 2016/12/02 ...
4 years ago (2016-12-02 23:03:24 UTC) #50
piman
On Fri, Dec 2, 2016 at 3:01 PM, Alexei Svitkine <asvitkine@chromium.org> wrote: > It can ...
4 years ago (2016-12-02 23:05:28 UTC) #51
Alexei Svitkine (slow)
I believe we just check for non 0, so even then its fine. On Dec ...
4 years ago (2016-12-02 23:26:14 UTC) #52
piman
On Fri, Dec 2, 2016 at 3:26 PM, Alexei Svitkine <asvitkine@chromium.org> wrote: > I believe ...
4 years ago (2016-12-02 23:58:25 UTC) #53
Alexei Svitkine (slow)
All right, we can address that in a separate CL since this one is not ...
4 years ago (2016-12-05 14:25:40 UTC) #54
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/2546653002/300001
4 years ago (2016-12-05 15:03:42 UTC) #57
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years ago (2016-12-05 16:23:59 UTC) #60
commit-bot: I haz the power
4 years ago (2016-12-05 16:26:23 UTC) #62
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/5e03cd3432b1f7904a11a94766956e8871795d9f
Cr-Commit-Position: refs/heads/master@{#436311}

Powered by Google App Engine
This is Rietveld 408576698