summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
diff options
context:
space:
mode:
authorbenquan@chromium.org <benquan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 05:18:32 +0000
committerbenquan@chromium.org <benquan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 05:18:32 +0000
commitdd167bd80345aba642d2ea62542711543cf97142 (patch)
tree51796b22a2c8d4163c3fb5f9f9ea5ee99852a7d1 /chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
parenta5645eda8c557e66d67b2d09aa0b0a82d3850301 (diff)
downloadchromium_src-dd167bd80345aba642d2ea62542711543cf97142.zip
chromium_src-dd167bd80345aba642d2ea62542711543cf97142.tar.gz
chromium_src-dd167bd80345aba642d2ea62542711543cf97142.tar.bz2
Make the rAc dialog stay for Autocheckout when it clicks on proceed button on the last page.
When there is a proceed element on the last page of Autocheckout flow, it will load the confirmation page which we do not have filemap for, so |TabAutofillManagerDelegate::DidNavigateMainFrame| will close the dialog. This CL added |AutofillManagerDelegate::InAutochekoutFlow()|, which will be called by |AutocheckoutManager| to explicitly notify the delegate if we are currently in an Autocheckout flow, and it should not close the dialog if the flow is not ended yet. BUG=260062 Review URL: https://chromiumcodereview.appspot.com/19304003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc')
-rw-r--r--chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
index 5dc6cdf..8e694c3 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
@@ -238,6 +238,10 @@ class TestAutofillDialogController
OnWalletSigninError();
}
+ bool AutocheckoutIsRunning() const {
+ return AUTOCHECKOUT_IN_PROGRESS == autocheckout_state();
+ }
+
MOCK_METHOD0(LoadRiskFingerprintData, void());
using AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData;
using AutofillDialogControllerImpl::IsEditingExistingData;