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

Issue 1716313002: [Herb] Set up field trial for UI prototypes (Closed)

Created:
4 years, 10 months ago by gone
Modified:
4 years, 9 months ago
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

[Herb] Set up field trial for UI prototypes * Add a field trial for bucketing users into different prototypes. The trial stores the herb flavor in a variations param. * Consolidate Herb string checking into FeatureUtilities, which checks whether VariationsAssociatedParams are active and whether they're overridden by about:flags. * Adds a "disabled" group to about:flags to explicitly disable the experiment, users on about:flags now default to whatever they're bucketed into. * Stop toasting to the user that they need the restart Chrome for cached experiment flags to take effect. Users won't understand why this is relevant. BUG=582539 Committed: https://crrev.com/b584cb20c80e31ab5ac85a9269e92efaa2cfbcf7 Cr-Commit-Position: refs/heads/master@{#377454}

Patch Set 1 #

Patch Set 2 : Using variations param #

Total comments: 2

Patch Set 3 : Charging blindly forward #

Total comments: 4

Patch Set 4 : DISABLED vs null #

Patch Set 5 : Swapped bak to trial instead of variations params #

Total comments: 3

Patch Set 6 : Histogram test #

Patch Set 7 : Rebased #

Patch Set 8 : startsWith #

Patch Set 9 : startsWith #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -83 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 3 chunks +1 line, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java View 1 2 3 4 5 6 1 chunk +14 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java View 1 2 3 3 chunks +8 lines, -49 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java View 1 2 3 4 5 6 7 3 chunks +92 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +10 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 5 chunks +5 lines, -0 lines 0 comments Download
M ui/android/java/strings/android_ui_strings.grd View 1 chunk +0 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (8 generated)
gone
+Theresa: You've played with field trials before, right? Does the usage in feature_utilities.cc look right ...
4 years, 10 months ago (2016-02-22 21:29:15 UTC) #2
gone
Swapped over to variations params.
4 years, 10 months ago (2016-02-22 23:19:42 UTC) #3
Ted C
lgtm w/ pending the distinct command lines question https://codereview.chromium.org/1716313002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1716313002/diff/20001/chrome/browser/about_flags.cc#newcode533 chrome/browser/about_flags.cc:533: switches::kTabManagementExperimentType, ...
4 years, 10 months ago (2016-02-22 23:31:21 UTC) #5
gone
Ilya: Is there documentation on how variations params and about:flags are supposed to interact? In ...
4 years, 10 months ago (2016-02-22 23:32:39 UTC) #7
gone
Corresponding json file: http://cr/115283081
4 years, 10 months ago (2016-02-23 00:19:36 UTC) #8
gone
Please check that things are still on the up and up. I've updated the corresponding ...
4 years, 10 months ago (2016-02-23 23:57:47 UTC) #9
Ted C
https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode195 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:195: if (isDocumentMode(context)) return null; instead of returning null, should ...
4 years, 10 months ago (2016-02-24 00:03:13 UTC) #10
gone
https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode195 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:195: if (isDocumentMode(context)) return null; On 2016/02/24 00:03:13, Ted C ...
4 years, 10 months ago (2016-02-24 00:18:33 UTC) #11
Ilya Sherman
https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode225 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:225: HERB_EXPERIMENT_NAME, HERB_EXPERIMENT_FLAVOR_PARAM); It seems like you're actually wanting to ...
4 years, 10 months ago (2016-02-24 01:42:35 UTC) #12
gone
https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode225 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:225: HERB_EXPERIMENT_NAME, HERB_EXPERIMENT_FLAVOR_PARAM); On 2016/02/24 01:42:35, Ilya Sherman wrote: > ...
4 years, 10 months ago (2016-02-24 02:16:15 UTC) #13
gone
4 years, 10 months ago (2016-02-24 02:17:00 UTC) #14
Ilya Sherman
Field trials LGTM, thanks.
4 years, 10 months ago (2016-02-24 02:33:23 UTC) #15
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode230 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:230: || TextUtils.equals(ChromeSwitches.HERB_FLAVOR_CONTROL, newFlavor) It's not a good idea to ...
4 years, 10 months ago (2016-02-24 17:08:03 UTC) #17
gone
https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode230 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:230: || TextUtils.equals(ChromeSwitches.HERB_FLAVOR_CONTROL, newFlavor) On 2016/02/24 17:08:03, Alexei Svitkine (slow) ...
4 years, 10 months ago (2016-02-24 17:47:51 UTC) #18
Alexei Svitkine (slow)
lgtm % comment https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java (right): https://chromiumcodereview.appspot.com/1716313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java#newcode230 chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java:230: || TextUtils.equals(ChromeSwitches.HERB_FLAVOR_CONTROL, newFlavor) On 2016/02/24 17:47:51, ...
4 years, 10 months ago (2016-02-24 23:10:35 UTC) #19
gone
TextUtils didn't have a startsWith, but TIL the regular Java String does.
4 years, 10 months ago (2016-02-24 23:57:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716313002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716313002/160001
4 years, 10 months ago (2016-02-25 00:03:30 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-25 01:23:37 UTC) #25
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 01:24:38 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b584cb20c80e31ab5ac85a9269e92efaa2cfbcf7
Cr-Commit-Position: refs/heads/master@{#377454}

Powered by Google App Engine
This is Rietveld 408576698