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

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

Issue 756333003: Prompt for unmasking Wallet credit card on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge conflicts Created 6 years, 1 month 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 c008944acd3757ab1d46bef5e3e951b49b2129ad..2c7f7a6e66e5829dcca9bdea012275c77b1df78e 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/credit_card_scanner_controller.h"
+#include "chrome/browser/ui/autofill/instrument_unmask_prompt_view.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
@@ -105,6 +106,17 @@ void ChromeAutofillClient::ShowAutofillSettings() {
#endif // #if defined(OS_ANDROID)
}
+void ChromeAutofillClient::ShowUnmaskPrompt() {
+ unmask_prompt_ = InstrumentUnmaskPromptView::CreateAndShow(
+ web_contents_, base::Bind(&ChromeAutofillClient::OnUnmaskResponse,
+ base::Unretained(this)));
+}
+
+void ChromeAutofillClient::OnUnmaskResponse(const base::string16& response) {
+ NOTIMPLEMENTED() << " I should probably do something with this: " << response;
+ unmask_prompt_.reset();
+}
+
void ChromeAutofillClient::ConfirmSaveCreditCard(
const AutofillMetrics& metric_logger,
const base::Closure& save_card_callback) {

Powered by Google App Engine
This is Rietveld 408576698