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

Issue 1366673002: Introduce a new FieldTrialList::IsTrialActive() API. (Closed)

Created:
5 years, 3 months ago by Alexei Svitkine (slow)
Modified:
5 years, 3 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce a new FieldTrialList::IsTrialActive() API. This removes a bunch of less-efficient helper functions scattered throughout code (mostly unit tests, but also some production code) that queried the same info. Also renames some params from |name| to |trial_name| for consistency. BUG=526169 Committed: https://crrev.com/11f882b405f348be9a286164f14205f0184ff474 Cr-Commit-Position: refs/heads/master@{#350585}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Address nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -64 lines) Patch
M base/metrics/field_trial.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M base/metrics/field_trial.cc View 1 chunk +15 lines, -8 lines 0 comments Download
M components/variations/variations_associated_data.cc View 2 chunks +1 line, -13 lines 0 comments Download
M components/variations/variations_associated_data_unittest.cc View 3 chunks +9 lines, -20 lines 0 comments Download
M components/variations/variations_seed_processor_unittest.cc View 3 chunks +7 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Alexei Svitkine (slow)
5 years, 3 months ago (2015-09-23 17:33:25 UTC) #3
Ilya Sherman
LGTM. Thanks for the cleanup =) https://codereview.chromium.org/1366673002/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/1366673002/diff/20001/base/metrics/field_trial.cc#newcode357 base/metrics/field_trial.cc:357: FieldTrial* FieldTrialList::Find(const std::string& ...
5 years, 3 months ago (2015-09-23 23:21:28 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1366673002/diff/20001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/1366673002/diff/20001/base/metrics/field_trial.cc#newcode357 base/metrics/field_trial.cc:357: FieldTrial* FieldTrialList::Find(const std::string& trial_name) { On 2015/09/23 23:21:28, Ilya ...
5 years, 3 months ago (2015-09-24 15:29:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366673002/40001
5 years, 3 months ago (2015-09-24 15:30:41 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 3 months ago (2015-09-24 16:57:53 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 16:58:54 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/11f882b405f348be9a286164f14205f0184ff474
Cr-Commit-Position: refs/heads/master@{#350585}

Powered by Google App Engine
This is Rietveld 408576698