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

Issue 21217: Don't store empty values for autofill (Closed)

Created:
11 years, 10 months ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL ensures we don't store empty values in the autofill form DB. Also it applies a clean-up to remove any empty values previously stored in the DB. BUG=6111 TEST=Submit a form and leave some fields empty. Come back to that form, click on a field that was empty. No autofill popup should show up (or if one show up, it should not contains empty values). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9570

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -22 lines) Patch
M chrome/browser/autofill_manager.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/autofill_manager.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/browser_prefs.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_database.h View 1 2 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 7 chunks +50 lines, -12 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M webkit/glue/autofill_form.cc View 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
jcampan
I briefly took my mind of layout tests and fixed this.
11 years, 10 months ago (2009-02-10 18:59:12 UTC) #1
sky
http://codereview.chromium.org/21217/diff/22/1014 File chrome/browser/autofill_manager.cc (right): http://codereview.chromium.org/21217/diff/22/1014#newcode124 Line 124: void AutofillManager::ClearEmptyEntriesInWebDatabase() { I would recommend have a ...
11 years, 10 months ago (2009-02-10 19:24:25 UTC) #2
jcampan
http://codereview.chromium.org/21217/diff/22/1014 File chrome/browser/autofill_manager.cc (right): http://codereview.chromium.org/21217/diff/22/1014#newcode124 Line 124: void AutofillManager::ClearEmptyEntriesInWebDatabase() { On 2009/02/10 19:24:25, sky wrote: ...
11 years, 10 months ago (2009-02-10 20:29:55 UTC) #3
sky
http://codereview.chromium.org/21217/diff/28/1040 File webkit/glue/autofill_form.cc (right): http://codereview.chromium.org/21217/diff/28/1040#newcode72 Line 72: result->elements.push_back(AutofillForm::Element(name, value)); Does the matching side trim whitespace ...
11 years, 10 months ago (2009-02-10 21:06:00 UTC) #4
jcampan
http://codereview.chromium.org/21217/diff/28/1040 File webkit/glue/autofill_form.cc (right): http://codereview.chromium.org/21217/diff/28/1040#newcode72 Line 72: result->elements.push_back(AutofillForm::Element(name, value)); On 2009/02/10 21:06:00, sky wrote: > ...
11 years, 10 months ago (2009-02-10 21:24:55 UTC) #5
sky
11 years, 10 months ago (2009-02-10 21:34:36 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698