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

Issue 2686763003: [Field trial params] Getting field trial params by feature name in Java. (Closed)

Created:
3 years, 10 months ago by jkrcal
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Field trial params] Getting field trial params by feature name in Java. This CL adds support to read field trial params in Java using the name of the feature they are associated to. It also brings parsing values to primitive types on par to what is available in c++ code. In follow-up CLs I plan to - extend ChromeFeatureList to support overriding param values from junit tests; - use the new functions from ntp_snippets java code. BUG=689937 Review-Url: https://codereview.chromium.org/2686763003 Cr-Commit-Position: refs/heads/master@{#449952} Committed: https://chromium.googlesource.com/chromium/src/+/abfc1c53a0963f4ac88a634895a5ac9afbb677eb

Patch Set 1 #

Total comments: 2

Patch Set 2 : Helper to find a feature #

Total comments: 2

Patch Set 3 : Alexei's comments #

Total comments: 2

Patch Set 4 : Bernhard's comments #

Patch Set 5 : Minor fixes #

Total comments: 4

Patch Set 6 : Bernhard's comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -20 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 2 3 4 5 3 chunks +56 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 4 chunks +58 lines, -19 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
jkrcal
Bernhard, could you PTAL as the owner of android? Alexei, could you PTAL from the ...
3 years, 10 months ago (2017-02-08 11:18:22 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/2686763003/diff/1/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/1/chrome/browser/android/chrome_feature_list.cc#newcode169 chrome/browser/android/chrome_feature_list.cc:169: for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) ...
3 years, 10 months ago (2017-02-08 16:36:00 UTC) #4
jkrcal
Thanks, PTAL again! https://codereview.chromium.org/2686763003/diff/1/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/1/chrome/browser/android/chrome_feature_list.cc#newcode169 chrome/browser/android/chrome_feature_list.cc:169: for (size_t i = 0; i ...
3 years, 10 months ago (2017-02-09 10:00:45 UTC) #5
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2686763003/diff/20001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/20001/chrome/browser/android/chrome_feature_list.cc#newcode77 chrome/browser/android/chrome_feature_list.cc:77: const base::Feature* FindFeatureExposedToJava(const std::string feature_name) { const std::string& ...
3 years, 10 months ago (2017-02-09 15:09:37 UTC) #6
jkrcal
Thanks! Bernhard, could you PTAL?
3 years, 10 months ago (2017-02-09 15:28:31 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/2686763003/diff/40001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/40001/chrome/browser/android/chrome_feature_list.cc#newcode169 chrome/browser/android/chrome_feature_list.cc:169: NOTREACHED(); The NOTREACHED() made sense in the old version ...
3 years, 10 months ago (2017-02-09 17:04:29 UTC) #12
jkrcal
Thanks, PTAL, again! https://codereview.chromium.org/2686763003/diff/40001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/40001/chrome/browser/android/chrome_feature_list.cc#newcode169 chrome/browser/android/chrome_feature_list.cc:169: NOTREACHED(); On 2017/02/09 17:04:29, Bernhard Bauer ...
3 years, 10 months ago (2017-02-09 19:10:40 UTC) #13
Alexei Svitkine (slow)
lgtm
3 years, 10 months ago (2017-02-09 22:49:39 UTC) #14
Bernhard Bauer
https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc#newcode167 chrome/browser/android/chrome_feature_list.cc:167: FindFeatureExposedToJava(ConvertJavaStringToUTF8(env, jfeature_name)); You are passing the returned feature by ...
3 years, 10 months ago (2017-02-10 16:27:07 UTC) #15
jkrcal
https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc#newcode167 chrome/browser/android/chrome_feature_list.cc:167: FindFeatureExposedToJava(ConvertJavaStringToUTF8(env, jfeature_name)); On 2017/02/10 16:27:07, Bernhard Bauer wrote: > ...
3 years, 10 months ago (2017-02-10 16:53:44 UTC) #16
Bernhard Bauer
https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2686763003/diff/80001/chrome/browser/android/chrome_feature_list.cc#newcode167 chrome/browser/android/chrome_feature_list.cc:167: FindFeatureExposedToJava(ConvertJavaStringToUTF8(env, jfeature_name)); On 2017/02/10 16:53:44, jkrcal wrote: > On ...
3 years, 10 months ago (2017-02-10 17:56:37 UTC) #17
jkrcal
I hope I got it right! :) (I am sorry about the minor rebase mixed-in; ...
3 years, 10 months ago (2017-02-13 07:57:27 UTC) #18
Bernhard Bauer
LGTM!
3 years, 10 months ago (2017-02-13 14:00:30 UTC) #19
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/2686763003/100001
3 years, 10 months ago (2017-02-13 14:04:53 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 14:39:49 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/abfc1c53a0963f4ac88a634895a5...

Powered by Google App Engine
This is Rietveld 408576698