|
|
Description[Icons NTP] Use GetVariationParamValue instead of experiment prefix to determine when large icons are enabled.
This is the standard pattern for adding a forcing flags in about://flags.
This also matches a google3 change that just landed which declares that parameter.
BUG=467712
Committed: https://crrev.com/accd94964315b34fe738166b173992477965b88c
Cr-Commit-Position: refs/heads/master@{#322456}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : Fixed in files Sam recommended. #
Total comments: 6
Messages
Total messages: 27 (11 generated)
beaudoin@chromium.org changed reviewers: + huangs@chromium.org, pkotwicz@chromium.org
beaudoin@chromium.org changed required reviewers: + pkotwicz@chromium.org
pkotwicz@google.com changed reviewers: + pkotwicz@google.com
LGTM with nit https://codereview.chromium.org/1032073003/diff/1/chrome/browser/favicon/favi... File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/1032073003/diff/1/chrome/browser/favicon/favi... chrome/browser/favicon/favicon_tab_helper.cc:7: #include "base/metrics/field_trial.h" You can remove this include?
https://codereview.chromium.org/1032073003/diff/1/chrome/browser/favicon/favi... File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/1032073003/diff/1/chrome/browser/favicon/favi... chrome/browser/favicon/favicon_tab_helper.cc:7: #include "base/metrics/field_trial.h" On 2015/03/25 22:25:41, pkotwicz22 wrote: > You can remove this include? Good catch! Thanks. Done.
Also change src/chrome/browser/search/local_ntp_source.cc src/chrome/renderer/searchbox/searchbox_extension.cc ?
Why I couldn't find these files by searching is beyond me. Thanks for pointing them out. PTAL.
beaudoin@chromium.org changed reviewers: + kmadhusu@chromium.org
beaudoin@chromium.org changed required reviewers: + kmadhusu@chromium.org
R+kmadhusu for OWNER on the two new files.
lgtm
https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:49: bool IsIconNTPEnabled() { This helper function is used by both browser and renderer code. Do you want to move this to a common place (instant_types.cc)? https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:50: return variations::GetVariationParamValue("IconNTP", "state") == "enabled"; You are checking for "enabled" instead of "Enabled" state. Is this intentional?
https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:49: bool IsIconNTPEnabled() { On 2015/03/26 16:25:11, kmadhusu wrote: > This helper function is used by both browser and renderer code. Do you want to > move this to a common place (instant_types.cc)? Agreed it's not optimal, but I'd propose leaving it like this since it's meant to be temporary code that will be removed when the experiment launches. Also, I can't find a good place to put it in common/ (I don't like instant_types since it contains only types at the moment, and it's not an instant feature per-se.) Are you OK with this? https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:50: return variations::GetVariationParamValue("IconNTP", "state") == "enabled"; On 2015/03/26 16:25:11, kmadhusu wrote: > You are checking for "enabled" instead of "Enabled" state. Is this intentional? Yes, this seems to be the pattern used by other Finch experiments that rely on the "state" parameters to trigger.
lgtm https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:49: bool IsIconNTPEnabled() { On 2015/03/26 16:50:08, beaudoin wrote: > On 2015/03/26 16:25:11, kmadhusu wrote: > > This helper function is used by both browser and renderer code. Do you want to > > move this to a common place (instant_types.cc)? > > Agreed it's not optimal, but I'd propose leaving it like this since it's meant > to be temporary code that will be removed when the experiment launches. Also, I > can't find a good place to put it in common/ (I don't like instant_types since > it contains only types at the moment, and it's not an instant feature per-se.) > > Are you OK with this? > > I am fine with the current state. I suggested instant_types.cc because it already has "NTP" related code :). https://codereview.chromium.org/1032073003/diff/40001/chrome/browser/favicon/... chrome/browser/favicon/favicon_tab_helper.cc:50: return variations::GetVariationParamValue("IconNTP", "state") == "enabled"; On 2015/03/26 16:50:10, beaudoin wrote: > On 2015/03/26 16:25:11, kmadhusu wrote: > > You are checking for "enabled" instead of "Enabled" state. Is this > intentional? > > Yes, this seems to be the pattern used by other Finch experiments that rely on > the "state" parameters to trigger. Acknowledged.
The CQ bit was checked by beaudoin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pkotwicz@google.com Link to the patchset: https://codereview.chromium.org/1032073003/#ps40001 (title: "Fixed in files Sam recommended.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032073003/40001
The CQ bit was unchecked by commit-bot@chromium.org
All required reviewers (with asterisk prefixes) have not yet approved this CL. No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an LGTM may have been provided, it was from a non-committer, _not_ a full super star committer. See http://www.chromium.org/getting-involved/become-a-committer Note that this has nothing to do with OWNERS files.
beaudoin@chromium.org changed reviewers: - pkotwicz@chromium.org
beaudoin@chromium.org changed required reviewers: - pkotwicz@chromium.org
The CQ bit was checked by beaudoin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032073003/40001
LGTM
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/accd94964315b34fe738166b173992477965b88c Cr-Commit-Position: refs/heads/master@{#322456} |