Commit b4102137 authored by Matthew Jones's avatar Matthew Jones Committed by Commit Bot

Add variations for edit-URL suggestion

This patch adds the different variation names for the edit-url
suggestion. The default is the share and edit icon version.

Bug: 901952
Change-Id: Iee24874c87b3f52e5c3b4eca7e2d2db7990ee9e3
Reviewed-on: https://chromium-review.googlesource.com/c/1419617
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625774}
parent 77e15037
......@@ -77,6 +77,9 @@ public class EditUrlSuggestionProcessor implements OnClickListener, SuggestionPr
/** The name of the experiment variation that shows the copy icon. */
private static final String COPY_ICON_VARIATION_NAME = "copy_icon";
/** The name of the experiment variation that shows both the copy and share icon. */
private static final String COPY_SHARE_ICON_VARIATION_NAME = "copy_share_icon";
/** The delegate for accessing the location bar for observation and modification. */
private final LocationBarDelegate mLocationBarDelegate;
......@@ -161,6 +164,9 @@ public class EditUrlSuggestionProcessor implements OnClickListener, SuggestionPr
if (TextUtils.equals(COPY_ICON_VARIATION_NAME, variation)) {
model.set(EditUrlSuggestionProperties.COPY_ICON_VISIBLE, true);
model.set(EditUrlSuggestionProperties.SHARE_ICON_VISIBLE, false);
} else if (TextUtils.equals(COPY_SHARE_ICON_VARIATION_NAME, variation)) {
model.set(EditUrlSuggestionProperties.COPY_ICON_VISIBLE, true);
model.set(EditUrlSuggestionProperties.SHARE_ICON_VISIBLE, true);
} else {
model.set(EditUrlSuggestionProperties.COPY_ICON_VISIBLE, false);
model.set(EditUrlSuggestionProperties.SHARE_ICON_VISIBLE, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment