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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Address code review comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/chrome_autofill_client.cc
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc
index 9868afbc41bf63b6b3fceb5562d377c8b14a669a..c1995009fcfdfc0a1c8bca45a999eaa8514c601f 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -24,7 +24,6 @@
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h"
#include "chrome/browser/ui/autofill/credit_card_scanner_controller.h"
-#include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
@@ -60,6 +59,7 @@
#include "components/infobars/core/infobar.h"
#include "content/public/browser/android/content_view_core.h"
#else // !OS_ANDROID
+#include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
@@ -152,6 +152,14 @@ ukm::UkmService* ChromeAutofillClient::GetUkmService() {
return g_browser_process->ukm_service();
}
+SaveCardBubbleController* ChromeAutofillClient::GetSaveCardBubbleController() {
+#if defined(OS_ANDROID)
+ return nullptr;
+#else
+ return SaveCardBubbleControllerImpl::FromWebContents(web_contents());
+#endif
+}
+
void ChromeAutofillClient::ShowAutofillSettings() {
#if defined(OS_ANDROID)
chrome::android::PreferencesLauncher::ShowAutofillSettings();
@@ -198,6 +206,7 @@ void ChromeAutofillClient::ConfirmSaveCreditCardLocally(
void ChromeAutofillClient::ConfirmSaveCreditCardToCloud(
const CreditCard& card,
std::unique_ptr<base::DictionaryValue> legal_message,
+ bool should_cvc_be_requested,
const base::Closure& callback) {
#if defined(OS_ANDROID)
InfoBarService::FromWebContents(web_contents())
@@ -209,7 +218,8 @@ void ChromeAutofillClient::ConfirmSaveCreditCardToCloud(
autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents());
autofill::SaveCardBubbleControllerImpl* controller =
autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents());
- controller->ShowBubbleForUpload(card, std::move(legal_message), callback);
+ controller->ShowBubbleForUpload(card, std::move(legal_message),
+ should_cvc_be_requested, callback);
#endif
}
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/browser/ui/autofill/save_card_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698