| Index: components/autofill/core/browser/autofill_client.h
|
| diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
|
| index d36f0026ffca6da8b3f830375f1be2af3514a457..35c3317db1d1d7b2a3f4b2dec40afe814cbee506 100644
|
| --- a/components/autofill/core/browser/autofill_client.h
|
| +++ b/components/autofill/core/browser/autofill_client.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/strings/string16.h"
|
| #include "base/values.h"
|
| +#include "components/autofill/core/browser/ui/save_card_bubble_controller.h"
|
| #include "ui/base/window_open_disposition.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -109,9 +110,13 @@ class AutofillClient {
|
| // Gets the RapporServiceImpl associated with the client (for metrics).
|
| virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0;
|
|
|
| - // Gets the UKM service assiciated with this client (for metrics).
|
| + // Gets the UKM service associated with this client (for metrics).
|
| virtual ukm::UkmService* GetUkmService() = 0;
|
|
|
| + // Gets the SaveCardBubbleController instance associated with the client.
|
| + // May return nullptr if the save card bubble has not been shown yet.
|
| + virtual SaveCardBubbleController* GetSaveCardBubbleController() = 0;
|
| +
|
| // Causes the Autofill settings UI to be shown.
|
| virtual void ShowAutofillSettings() = 0;
|
|
|
| @@ -128,10 +133,12 @@ class AutofillClient {
|
| const base::Closure& callback) = 0;
|
|
|
| // Runs |callback| if the |card| should be uploaded to Payments. Displays the
|
| - // contents of |legal_message| to the user.
|
| + // contents of |legal_message| to the user. Display a CVC field in the bubble
|
| + // if |upload_cvc_should_be_requested| is true.
|
| virtual void ConfirmSaveCreditCardToCloud(
|
| const CreditCard& card,
|
| std::unique_ptr<base::DictionaryValue> legal_message,
|
| + const bool upload_cvc_should_be_requested,
|
| const base::Closure& callback) = 0;
|
|
|
| // Will show an infobar to get user consent for Credit Card assistive filling.
|
|
|