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

Issue 2501283002: Refactor field_trial.cc (Closed)

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

Description

Refactor field_trial.cc This change does three things: 1) removes the <handle>,<length> switch on the command line on Windows, since we are now using a static size. 2) creates CreateTrialsFromWindowsHandle(), which CreateTrialsFromCommandLine() will call, and makes CreateTrialsFromCommandLine more symmetric. We will probably do something similar for linux and mac 3) typedefs SharedPersistentMemoryAllocator::Reference and SharedPersistentMemoryAllocator to FieldTrial::FieldTrialRef and FieldTrialList::FieldTrialAllocator respectively. BUG=665247 Committed: https://crrev.com/cc8319b4398e1568d6ea270f74f4fa0146cd455c Cr-Commit-Position: refs/heads/master@{#433264}

Patch Set 1 #

Patch Set 2 : git rebase-update #

Patch Set 3 : keep flag the same #

Total comments: 1

Patch Set 4 : fix nit #

Patch Set 5 : git rebase-update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -43 lines) Patch
M base/metrics/field_trial.h View 5 chunks +13 lines, -3 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 10 chunks +35 lines, -40 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
lawrencewu
We should probably land this after fixing the crashing issue.
4 years, 1 month ago (2016-11-15 17:02:03 UTC) #3
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2501283002/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2501283002/diff/40001/base/metrics/field_trial.cc#newcode822 base/metrics/field_trial.cc:822: SharedMemoryHandle(handle, GetCurrentProcId()); Nit: SharedMemoryHandle shm_handle(andle, GetCurrentProcId());
4 years, 1 month ago (2016-11-16 01:55:13 UTC) #5
lawrencewu
Just gonna commit now actually, since it looks like the fix for the other bug ...
4 years, 1 month ago (2016-11-18 15:27:30 UTC) #6
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/2501283002/80001
4 years, 1 month ago (2016-11-18 15:28:07 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/183712)
4 years, 1 month ago (2016-11-18 18:38:18 UTC) #11
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/2501283002/80001
4 years, 1 month ago (2016-11-18 18:40:32 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-18 19:34:51 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 19:37:14 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cc8319b4398e1568d6ea270f74f4fa0146cd455c
Cr-Commit-Position: refs/heads/master@{#433264}

Powered by Google App Engine
This is Rietveld 408576698