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

Issue 1930002: AutoFill profile shouldn't be saved when cancelled during initial setup. (Closed)

Created:
10 years, 7 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

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 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+459 lines, -280 lines) Patch
M chrome/browser/autofill/autofill_dialog.h View 1 2 1 chunk +12 lines, -10 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.h View 4 chunks +25 lines, -12 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.mm View 1 2 8 chunks +136 lines, -28 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm View 1 2 3 23 chunks +218 lines, -60 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_gtk.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_mac.mm View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 chunks +12 lines, -35 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.h View 1 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_test_helper.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 2 3 chunks +1 line, -108 lines 0 comments Download
M chrome/browser/gtk/options/content_page_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/autofill_profiles_view_win.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dhollowa
10 years, 7 months ago (2010-05-04 20:13:14 UTC) #1
James Hawkins
http://codereview.chromium.org/1930002/diff/1/2 File chrome/browser/autofill/autofill_dialog.h (right): http://codereview.chromium.org/1930002/diff/1/2#newcode44 chrome/browser/autofill/autofill_dialog.h:44: void ShowAutoFillDialog(gfx::NativeView parent, Can you add a comment for ...
10 years, 7 months ago (2010-05-04 21:05:30 UTC) #2
dhollowa
http://codereview.chromium.org/1930002/diff/1/2 File chrome/browser/autofill/autofill_dialog.h (right): http://codereview.chromium.org/1930002/diff/1/2#newcode44 chrome/browser/autofill/autofill_dialog.h:44: void ShowAutoFillDialog(gfx::NativeView parent, On 2010/05/04 21:05:30, James Hawkins wrote: ...
10 years, 7 months ago (2010-05-04 21:52:10 UTC) #3
James Hawkins
http://codereview.chromium.org/1930002/diff/1/5 File chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm (right): http://codereview.chromium.org/1930002/diff/1/5#newcode47 chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm:47: kWebDataLoadDelayMilliseconds); On 2010/05/04 21:52:10, dhollowa wrote: > On 2010/05/04 ...
10 years, 7 months ago (2010-05-04 22:34:20 UTC) #4
dhollowa
http://codereview.chromium.org/1930002/diff/1/5 File chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm (right): http://codereview.chromium.org/1930002/diff/1/5#newcode47 chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm:47: kWebDataLoadDelayMilliseconds); On 2010/05/04 22:34:20, James Hawkins wrote: > On ...
10 years, 7 months ago (2010-05-04 23:00:40 UTC) #5
James Hawkins
LGTM http://codereview.chromium.org/1930002/diff/21001/2006 File chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm (right): http://codereview.chromium.org/1930002/diff/21001/2006#newcode22 chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm:22: // This delay allows the UI loop to ...
10 years, 7 months ago (2010-05-04 23:28:46 UTC) #6
dhollowa
10 years, 7 months ago (2010-05-04 23:37:58 UTC) #7
http://codereview.chromium.org/1930002/diff/21001/2006
File chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm (right):

http://codereview.chromium.org/1930002/diff/21001/2006#newcode22
chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm:22: // This
delay allows the UI loop to run and display intermediate results.  Then
On 2010/05/04 23:28:47, James Hawkins wrote:
> This comment should be along the lines of "This is the timeout value for such
> and such".  The comment you currently have here should go down where the
timeout
> actually is called.

Done.

Powered by Google App Engine
This is Rietveld 408576698