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

Issue 667043002: Add a flag to ignore autocomplete="off" for Autofill. (Closed)

Created:
6 years, 2 months ago by Evan Stade
Modified:
6 years, 2 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git/+/master
Project:
chromium
Visibility:
Public.

Description

Add a flag to ignore autocomplete="off" for Autofill. This should help us experiment with making this the default behavior. Note that autocomplete="off" still works for autocomplete history. new flag is: --ignore-autocomplete-off-autofill BUG=406083, 425672 Committed: https://crrev.com/0ee9126c15e2c0ec18a9cc9b6522133e45946db2 Cr-Commit-Position: refs/heads/master@{#300929}

Patch Set 1 #

Patch Set 2 : relative patchset #

Patch Set 3 : better comments #

Total comments: 19

Patch Set 4 : isherman review #

Patch Set 5 : cancelpendingquery #

Patch Set 6 : about:flags #

Total comments: 1

Patch Set 7 : update histograms.xml #

Total comments: 2

Patch Set 8 : fix preview on fields with no autocomplete="off" / add a flag to disable https:// requirements for … #

Total comments: 4

Patch Set 9 : test coverage #

Patch Set 10 : fix MSVC error C4373 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -31 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 1 2 3 4 5 6 7 6 chunks +22 lines, -15 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 4 chunks +13 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -7 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +70 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/autofill_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
groby-ooo-7-16
LGTM, with the caveat mentioned below https://codereview.chromium.org/667043002/diff/40001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/667043002/diff/40001/components/autofill/core/browser/autofill_manager.cc#newcode537 components/autofill/core/browser/autofill_manager.cc:537: autocomplete_history_manager_->OnGetAutocompleteSuggestions( Question: OnGetAutocompleteSuggestions ...
6 years, 2 months ago (2014-10-20 22:52:31 UTC) #2
Evan Stade
Thanks Rachel. I'd also like to wait for Ilya's input. https://codereview.chromium.org/667043002/diff/40001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/667043002/diff/40001/components/autofill/core/browser/autofill_manager.cc#newcode537 ...
6 years, 2 months ago (2014-10-20 23:01:54 UTC) #3
Ilya Sherman
Thanks, Evan. This makes sense to me behind a flag; I definitely still think we'd ...
6 years, 2 months ago (2014-10-21 01:19:12 UTC) #4
Evan Stade
https://codereview.chromium.org/667043002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/667043002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1345 chrome/browser/chrome_content_browser_client.cc:1345: autofill::switches::kIgnoreAutocompleteOffForAutofill, On 2014/10/21 01:19:11, Ilya Sherman wrote: > nit: ...
6 years, 2 months ago (2014-10-21 19:12:47 UTC) #5
Evan Stade
https://codereview.chromium.org/667043002/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/667043002/diff/100001/chrome/browser/about_flags.cc#newcode1658 chrome/browser/about_flags.cc:1658: "ignore-autocomplete-off-autofill", Also added an entry here. It's limited to ...
6 years, 2 months ago (2014-10-21 19:32:13 UTC) #6
Ilya Sherman
https://codereview.chromium.org/667043002/diff/40001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/667043002/diff/40001/components/autofill/content/renderer/form_autofill_util.cc#newcode495 components/autofill/content/renderer/form_autofill_util.cc:495: if (control_elements.size() != data.fields.size()) { On 2014/10/21 19:12:47, Evan ...
6 years, 2 months ago (2014-10-21 23:58:19 UTC) #7
Ilya Sherman
https://codereview.chromium.org/667043002/diff/120001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/667043002/diff/120001/components/autofill/content/renderer/form_autofill_util.cc#newcode63 components/autofill/content/renderer/form_autofill_util.cc:63: FILTER_ALL_NON_EDITABLE_ELEMENTS = FILTER_DISABLED_ELEMENTS | nit: Please keep the equals ...
6 years, 2 months ago (2014-10-22 00:00:39 UTC) #8
Evan Stade
https://codereview.chromium.org/667043002/diff/120001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/667043002/diff/120001/components/autofill/content/renderer/form_autofill_util.cc#newcode63 components/autofill/content/renderer/form_autofill_util.cc:63: FILTER_ALL_NON_EDITABLE_ELEMENTS = FILTER_DISABLED_ELEMENTS | On 2014/10/22 00:00:39, Ilya Sherman ...
6 years, 2 months ago (2014-10-22 21:52:33 UTC) #9
Ilya Sherman
Thanks. The logic LG now -- could you please add some test coverage? (Sorry for ...
6 years, 2 months ago (2014-10-23 00:35:27 UTC) #10
Evan Stade
I don't think it makes sense to write tests for functionality that's behind a flag. ...
6 years, 2 months ago (2014-10-23 02:02:20 UTC) #11
Ilya Sherman
LGTM, thanks.
6 years, 2 months ago (2014-10-23 04:24:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667043002/180001
6 years, 2 months ago (2014-10-23 18:19:41 UTC) #14
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years, 2 months ago (2014-10-23 19:29:31 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 19:30:06 UTC) #16
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0ee9126c15e2c0ec18a9cc9b6522133e45946db2
Cr-Commit-Position: refs/heads/master@{#300929}

Powered by Google App Engine
This is Rietveld 408576698