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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 14904002: Load and send Wallet Risk params after user has agreed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 36acceb42bc4ad7bf1c7810248aa4ffca869ec47..e9aaf09216f0849fa73ea101a8eeddcb449826e1 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -265,6 +265,12 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// Exposed and virtual for testing.
virtual bool IsFirstRun() const;
+ // Asks risk module to asynchronously load fingerprint data. Data will be
+ // returned via |OnDidLoadRiskFingerprintData()|. Exposed for testing.
+ virtual void LoadRiskFingerprintData();
+ virtual void OnDidLoadRiskFingerprintData(
+ scoped_ptr<risk::Fingerprint> fingerprint);
+
// Opens the given URL in a new foreground tab.
virtual void OpenTabWithUrl(const GURL& url);
@@ -374,11 +380,6 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// Hides |popup_controller_|'s popup view, if it exists.
void HidePopup();
- // Asks risk module to asynchronously load fingerprint data. Data will be
- // returned via OnDidLoadRiskFingerprintData.
- void LoadRiskFingerprintData();
- void OnDidLoadRiskFingerprintData(scoped_ptr<risk::Fingerprint> fingerprint);
-
// Whether the user has chosen to enter all new data in |section|. This
// happens via choosing "Add a new X..." from a section's suggestion menu.
bool IsManuallyEditingSection(DialogSection section) const;
@@ -412,6 +413,9 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// or Online Wallet (|is_submitting_|) and update the view.
void SetIsSubmitting(bool submitting);
+ // Whether the user has accepted all the current legal documents' terms.
+ bool AreLegalDocumentsCurrent() const;
+
// Start the submit proccess to interact with Online Wallet (might do various
// things like accept documents, save details, update details, respond to
// required actions, etc.).
@@ -432,6 +436,10 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// This information is decoded to reveal a fronting (proxy) card.
void GetFullWallet();
+ // Calls |GetFullWallet()| if the required members (|risk_data_|,
+ // |active_instrument_id_|, and |active_address_id_|) are populated.
+ void GetFullWalletIfReady();
+
// Updates the state of the controller and |view_| based on any required
// actions returned by Save or Update calls to Wallet.
void HandleSaveOrUpdateRequiredActions(
@@ -513,6 +521,10 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
scoped_ptr<wallet::WalletItems> wallet_items_;
scoped_ptr<wallet::FullWallet> full_wallet_;
+ // Local machine signals to pass along on each request to trigger (or
+ // discourage) risk challenges; sent if the user is up to date on legal docs.
+ std::string risk_data_;
+
// The text to display when the user is accepting new terms of service, etc.
string16 legal_documents_text_;
// The ranges within |legal_documents_text_| to linkify.
@@ -569,6 +581,9 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// Whether this is the first time this profile has seen the Autofill dialog.
bool is_first_run_;
+ // Whether a user accepted legal documents while this dialog is running.
+ bool has_accepted_legal_documents_;
+
// True after the user first accepts the dialog and presses "Submit". May
// continue to be true while processing required actions.
bool is_submitting_;
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698