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

Issue 2565683003: Share field trial allocator on Mac (Closed)

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

Description

Share field trial allocator on Mac This CL shares the field trial allocator on MacOS. It depends on Mac having POSIX shared memory support, but other than that it is basically the same mechanism as that in the Linux CL: https://codereview.chromium.org/2530573002/. We basically just need to edit some ifdefs. NOTE: turning on NOPRESUBMIT because the dependent CL re-adds some banned calls to AllowIO. BUG=663912 NOPRESUBMIT=true Committed: https://crrev.com/d17b445e932a10c875cea034b037b19d30e47a8c Cr-Commit-Position: refs/heads/master@{#438265}

Patch Set 1 #

Patch Set 2 : Fix ios compile issue #

Patch Set 3 : Add POSIX implementation of Duplicate() #

Patch Set 4 : Fix comment in header file #

Patch Set 5 : Fix breaking browsertests. #

Patch Set 6 : readd getting the fds #

Patch Set 7 : totally reset content_main_runner.cc #

Patch Set 8 : Add some comments. #

Total comments: 2

Patch Set 9 : Use intentionally dummy value and fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -27 lines) Patch
M base/memory/shared_memory_handle.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M base/memory/shared_memory_handle_mac.cc View 1 2 1 chunk +22 lines, -10 lines 0 comments Download
M base/metrics/field_trial.h View 5 1 chunk +1 line, -2 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 7 8 10 chunks +29 lines, -13 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 73 (61 generated)
lawrencewu
4 years ago (2016-12-09 22:31:01 UTC) #4
Alexei Svitkine (slow)
lgtm woot!
4 years ago (2016-12-09 22:35:22 UTC) #6
lawrencewu
mark@: I had to readd the POSIX implementation for Duplicate(). I thought I didn't need ...
4 years ago (2016-12-10 02:05:02 UTC) #19
lawrencewu
On 2016/12/10 02:05:02, lawrencewu wrote: > mark@: I had to readd the POSIX implementation for ...
4 years ago (2016-12-10 23:35:57 UTC) #40
Alexei Svitkine (slow)
That seems fine to me as long as we clearly document it. However, I'm curious ...
4 years ago (2016-12-11 14:10:01 UTC) #41
lawrencewu
On 2016/12/11 14:10:01, Alexei Svitkine (slow) wrote: > That seems fine to me as long ...
4 years ago (2016-12-11 17:58:10 UTC) #42
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2565683003/diff/140001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2565683003/diff/140001/base/metrics/field_trial.cc#newcode947 base/metrics/field_trial.cc:947: cmd_line->AppendSwitchASCII(field_trial_handle_switch, field_trial_handle); If in this case you're using ...
4 years ago (2016-12-12 16:02:39 UTC) #55
lawrencewu
Address comments. mark@: PTAL, thanks. https://codereview.chromium.org/2565683003/diff/140001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2565683003/diff/140001/base/metrics/field_trial.cc#newcode947 base/metrics/field_trial.cc:947: cmd_line->AppendSwitchASCII(field_trial_handle_switch, field_trial_handle); On 2016/12/12 ...
4 years ago (2016-12-13 17:18:40 UTC) #62
Mark Mentovai
LGTM
4 years ago (2016-12-13 17:55:59 UTC) #63
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/2565683003/160001
4 years ago (2016-12-13 19:51:25 UTC) #68
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-13 19:55:06 UTC) #71
commit-bot: I haz the power
4 years ago (2016-12-13 19:59:22 UTC) #73
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d17b445e932a10c875cea034b037b19d30e47a8c
Cr-Commit-Position: refs/heads/master@{#438265}

Powered by Google App Engine
This is Rietveld 408576698