Commit bbeeec98 authored by Marian Fechete's avatar Marian Fechete Committed by Commit Bot

[Autofill Assistant] Add another onboarding informational text based on intent.

This CL adds a new onboarding informational text for two new intents.

Bug: b/159783364
Change-Id: I95205c1e5f68d1f90f424f92a4e6719a3e11c0ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2263892
Commit-Queue: Marian Fechete <marianfe@google.com>
Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Cr-Commit-Position: refs/heads/master@{#781902}
parent 7d8efe24
......@@ -43,6 +43,8 @@ class AssistantOnboardingCoordinator {
private static final String FLIGHTS_INTENT = "FLIGHTS_CHECKIN";
private static final String FOOD_ORDERING_INTENT = "FOOD_ORDERING";
private static final String VOICE_SEARCH_INTENT = "TELEPORT";
private static final String SHOPPING_INTENT = "SHOPPING";
private static final String SHOPPING_ASSISTED_CHECKOUT_INTENT = "SHOPPING_ASSISTED_CHECKOUT";
private static final String BUY_MOVIE_TICKETS_EXPERIMENT_ID = "4363482";
private final String mExperimentIds;
......@@ -235,6 +237,11 @@ class AssistantOnboardingCoordinator {
termsTextView.setText(R.string.autofill_assistant_init_message_short);
titleTextView.setText(R.string.autofill_assistant_init_message_rent_car);
break;
case SHOPPING_INTENT:
case SHOPPING_ASSISTED_CHECKOUT_INTENT:
termsTextView.setText(R.string.autofill_assistant_init_message_short);
titleTextView.setText(R.string.autofill_assistant_init_message_shopping);
break;
case BUY_MOVIE_TICKETS_INTENT:
if (Arrays.asList(mExperimentIds.split(","))
.contains(BUY_MOVIE_TICKETS_EXPERIMENT_ID)) {
......
......@@ -172,22 +172,25 @@
I agree
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_TITLE" desc="The title of the onboarding screen.">
Try Google Assistant \n in Chrome
Try Google Assistant\nin Chrome
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_RENT_CAR" desc="Onboarding message describing autofill assistant's capability for car rentals.">
Rent a car \n in just a few taps
Rent a car\nin just a few taps
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_BUY_MOVIE_TICKETS" desc="Onboarding message describing autofill assistant's capability for movie tickets.">
Buy movie tickets \n in just a few taps
Buy movie tickets\nin just a few taps
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_FOOD_ORDERING" desc="Onboarding message describing autofill assistant's capability for food ordering.">
Order food \n in just a few taps
Order food\nin just a few taps
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_FLIGHTS_CHECKIN" desc="Onboarding message describing autofill assistant's capability for flights.">
Check in to your flight \n in just a few taps
Check in to your flight\nin just a few taps
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_VOICE_SEARCH" desc="Onboarding message describing autofill assistant's capability for voice search.">
Try voice actions \n on websites
Try voice actions\non websites
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE_SHOPPING" desc="Onboarding message describing autofill assistant's capability for shopping.">
Buy things\nin just a few taps
</message>
<message name="IDS_AUTOFILL_ASSISTANT_INIT_MESSAGE" desc="Onboarding message describing autofill assistant's capability.">
Google Assistant saves you time by helping you complete actions on the web, like search and checkout.
......
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