DescriptionAutoFill 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46424
Patch Set 1 #
Total comments: 30
Patch Set 2 : Addressing review comments. #
Total comments: 6
Patch Set 3 : Addressing review comments. Round 2. #
Total comments: 2
Patch Set 4 : Addressing review comments. Polishing unit test comments. #Messages
Total messages: 7 (0 generated)
|