summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/autofill_profiles_view_win.cc
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 00:56:17 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 00:56:17 +0000
commit425da01739bb4ba95300fdbdbaba87db1f493253 (patch)
tree9bb3e0c9ba82ce925a5204c52c73680ffe41bba6 /chrome/browser/views/autofill_profiles_view_win.cc
parent8c9e6145a82e178e7773099e3e03abf6b640fce0 (diff)
downloadchromium_src-425da01739bb4ba95300fdbdbaba87db1f493253.zip
chromium_src-425da01739bb4ba95300fdbdbaba87db1f493253.tar.gz
chromium_src-425da01739bb4ba95300fdbdbaba87db1f493253.tar.bz2
AutoFill profile shouldn't be saved when cancelled during initial setup.
For first encounter with fillable form, the AutoFillManager::OnInfoBarAccepted() call now passes the new profile and credit card information to the dialog directly instead of saving it to the database and then invoking the dialog. This facilitates "Cancel" in the dialog where the new information is not persisted. This was a good opportunity to refactor the deferred PersonalDataManager::Observer() logic out of the preferences dialog and into the AutoFillDialogController itself. This also consolidates the Windows, Mac, and Linux interfaces for the ShowAutoFillDialog() call. More work is required on Linux and Windows to properly conform to this interface and fix bug 41010. The Linux and Windows implementations will need to respect the new input parameters |imported_profile| and |imported_credit_card|. BUG=41010 TEST=AutoFillDialogControllerTest.WaitForDataToLoad, AutoFillDialogControllerTest.ImportedParameters Review URL: http://codereview.chromium.org/1930002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/autofill_profiles_view_win.cc')
-rw-r--r--chrome/browser/views/autofill_profiles_view_win.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/views/autofill_profiles_view_win.cc b/chrome/browser/views/autofill_profiles_view_win.cc
index 0830b6e..3f348bb 100644
--- a/chrome/browser/views/autofill_profiles_view_win.cc
+++ b/chrome/browser/views/autofill_profiles_view_win.cc
@@ -1435,9 +1435,14 @@ void AutoFillProfilesView::AutoFillScrollView::Layout() {
}
// Declared in "chrome/browser/autofill/autofill_dialog.h"
-void ShowAutoFillDialog(gfx::NativeWindow parent,
+// TODO(georgey): Need to update implementation to match new interface for
+// |imported_profile| and |imported_credit_card| parameters.
+// See http://crbug.com/41010
+void ShowAutoFillDialog(gfx::NativeView parent,
AutoFillDialogObserver* observer,
- Profile* profile) {
+ Profile* profile,
+ AutoFillProfile* imported_profile,
+ CreditCard* imported_credit_card) {
DCHECK(profile);
// It's possible we haven't shown the InfoBar yet, but if the user is in the