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

Issue 11348273: [autofill] Fill in values on a successful run of interactive autocomplete. (Closed)

Created:
8 years ago by Dan Beam
Modified:
8 years ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, darin-cc_chromium.org, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Visibility:
Public.

Description

[autofill] Fill in values on a successful run of interactive autocomplete. R=estade@chromium.org,isherman@chromium.org TBR=jschuh@chromium.org BUG=157661 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170581

Patch Set 1 #

Total comments: 25

Patch Set 2 : isherman@ review #

Total comments: 12

Patch Set 3 : estade@ review #

Total comments: 8

Patch Set 4 : estade@/isherman@ review #

Total comments: 3

Patch Set 5 : work with utf-16 #

Patch Set 6 : nits #

Patch Set 7 : estade@ review #

Total comments: 8

Patch Set 8 : fix unit_tests #

Patch Set 9 : remove erase() #

Patch Set 10 : slightly moar tests #

Patch Set 11 : estade@ review #

Patch Set 12 : var rename #

Total comments: 7

Patch Set 13 : simplify code #

Patch Set 14 : doc comment #

Total comments: 5

Patch Set 15 : isherman@ review #

Total comments: 6

Patch Set 16 : . #

Total comments: 2

Patch Set 17 : jhawkins@ review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -36 lines) Patch
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/autofill/form_structure.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/autofill/form_structure.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/autofill/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/common/autofill_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/common/form_data.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/form_data.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/autofill_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -1 line 0 comments Download
M chrome/renderer/autofill/autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +16 lines, -6 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/autofill/form_autofill_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +32 lines, -17 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Dan Beam
8 years ago (2012-11-28 05:56:01 UTC) #1
Ilya Sherman
Looks good at a high level, but a bunch of comments on the details: https://codereview.chromium.org/11348273/diff/1/chrome/browser/autofill/form_structure.cc ...
8 years ago (2012-11-28 06:16:39 UTC) #2
Dan Beam
https://codereview.chromium.org/11348273/diff/1/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): https://codereview.chromium.org/11348273/diff/1/chrome/browser/autofill/form_structure.cc#newcode818 chrome/browser/autofill/form_structure.cc:818: // TODO(dbeam): Store user_submitted in ctor if it's important. ...
8 years ago (2012-11-28 19:59:10 UTC) #3
Evan Stade
https://codereview.chromium.org/11348273/diff/5002/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): https://codereview.chromium.org/11348273/diff/5002/chrome/browser/autofill/form_structure.cc#newcode829 chrome/browser/autofill/form_structure.cc:829: out_data = data.release(); this doesn't do anything https://codereview.chromium.org/11348273/diff/5002/chrome/browser/autofill/form_structure.h File ...
8 years ago (2012-11-28 22:45:51 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/common/autofill_messages.h File chrome/common/autofill_messages.h (right): https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/common/autofill_messages.h#newcode137 chrome/common/autofill_messages.h:137: // Sent when interactive autocomplete succeeds. Changes the original ...
8 years ago (2012-11-29 00:08:59 UTC) #5
Evan Stade
https://chromiumcodereview.appspot.com/11348273/diff/5002/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://chromiumcodereview.appspot.com/11348273/diff/5002/chrome/browser/autofill/form_structure.h#newcode150 chrome/browser/autofill/form_structure.h:150: void ToFormData(FormData* out_data) const; On 2012/11/29 00:08:59, Ilya Sherman ...
8 years ago (2012-11-29 00:20:59 UTC) #6
Evan Stade
s/FormGroup/FormData
8 years ago (2012-11-29 00:21:17 UTC) #7
Ilya Sherman
https://chromiumcodereview.appspot.com/11348273/diff/5002/chrome/browser/autofill/form_structure.h File chrome/browser/autofill/form_structure.h (right): https://chromiumcodereview.appspot.com/11348273/diff/5002/chrome/browser/autofill/form_structure.h#newcode150 chrome/browser/autofill/form_structure.h:150: void ToFormData(FormData* out_data) const; On 2012/11/29 00:20:59, Evan Stade ...
8 years ago (2012-11-29 00:26:42 UTC) #8
Evan Stade
https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc#newcode603 chrome/renderer/autofill/autofill_agent.cc:603: const FormFieldData field = form_data.fields[i]; this should be const ...
8 years ago (2012-11-29 00:38:56 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/common/autofill_messages.h File chrome/common/autofill_messages.h (right): https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/common/autofill_messages.h#newcode137 chrome/common/autofill_messages.h:137: // Sent when interactive autocomplete succeeds. Changes the original ...
8 years ago (2012-11-29 00:51:13 UTC) #10
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc#newcode613 chrome/renderer/autofill/autofill_agent.cc:613: UTF16ToASCII(elements[j].getAttribute("autocomplete")); double check that this is ASCII before converting ...
8 years ago (2012-11-29 01:05:47 UTC) #11
Evan Stade
https://codereview.chromium.org/11348273/diff/14001/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://codereview.chromium.org/11348273/diff/14001/chrome/renderer/autofill/autofill_agent.cc#newcode613 chrome/renderer/autofill/autofill_agent.cc:613: UTF16ToASCII(elements[j].getAttribute("autocomplete")); if the attribute can have non-ASCII characters, this ...
8 years ago (2012-11-29 01:06:28 UTC) #12
Dan Beam
https://codereview.chromium.org/11348273/diff/14001/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://codereview.chromium.org/11348273/diff/14001/chrome/renderer/autofill/autofill_agent.cc#newcode613 chrome/renderer/autofill/autofill_agent.cc:613: UTF16ToASCII(elements[j].getAttribute("autocomplete")); On 2012/11/29 01:06:28, Evan Stade wrote: > if ...
8 years ago (2012-11-29 02:14:59 UTC) #13
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/13001/chrome/renderer/autofill/autofill_agent.cc#newcode603 chrome/renderer/autofill/autofill_agent.cc:603: const FormFieldData field = form_data.fields[i]; On 2012/11/29 00:38:56, Evan ...
8 years ago (2012-11-29 03:48:28 UTC) #14
Dan Beam
removed element erase()s
8 years ago (2012-11-29 04:00:50 UTC) #15
Evan Stade
https://chromiumcodereview.appspot.com/11348273/diff/7013/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/7013/chrome/renderer/autofill/autofill_agent.cc#newcode610 chrome/renderer/autofill/autofill_agent.cc:610: const string16 element_attr16 = elements[j].getAttribute("autocomplete"); don't put type hints ...
8 years ago (2012-11-29 04:01:25 UTC) #16
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/7013/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/7013/chrome/renderer/autofill/autofill_agent.cc#newcode610 chrome/renderer/autofill/autofill_agent.cc:610: const string16 element_attr16 = elements[j].getAttribute("autocomplete"); On 2012/11/29 04:01:25, Evan ...
8 years ago (2012-11-29 04:15:19 UTC) #17
Ilya Sherman
https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/1/chrome/renderer/autofill/autofill_agent.cc#newcode621 chrome/renderer/autofill/autofill_agent.cc:621: } On 2012/11/29 00:51:13, Dan Beam wrote: > On ...
8 years ago (2012-11-29 08:24:01 UTC) #18
Evan Stade
lgtm pending Ilya's review. https://chromiumcodereview.appspot.com/11348273/diff/3006/chrome/renderer/autofill/form_autofill_util.h File chrome/renderer/autofill/form_autofill_util.h (right): https://chromiumcodereview.appspot.com/11348273/diff/3006/chrome/renderer/autofill/form_autofill_util.h#newcode101 chrome/renderer/autofill/form_autofill_util.h:101: void FillFormField(const FormFieldData& data, move ...
8 years ago (2012-11-29 18:54:07 UTC) #19
Dan Beam
isherman@: I've made the changes we talked about wrt to removing my custom form filling ...
8 years ago (2012-11-30 00:23:15 UTC) #20
Ilya Sherman
https://chromiumcodereview.appspot.com/11348273/diff/15003/chrome/renderer/autofill/autofill_agent.cc File chrome/renderer/autofill/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/15003/chrome/renderer/autofill/autofill_agent.cc#newcode599 chrome/renderer/autofill/autofill_agent.cc:599: } nit: Please move this function so that it ...
8 years ago (2012-11-30 01:26:54 UTC) #21
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/15003/chrome/renderer/autofill/form_autofill_util.cc File chrome/renderer/autofill/form_autofill_util.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/15003/chrome/renderer/autofill/form_autofill_util.cc#newcode469 chrome/renderer/autofill/form_autofill_util.cc:469: !element->isFocusable()) On 2012/11/30 01:26:54, Ilya Sherman wrote: > We'll ...
8 years ago (2012-11-30 03:01:15 UTC) #22
Ilya Sherman
Hopefully last few nits: https://chromiumcodereview.appspot.com/11348273/diff/5009/chrome/renderer/autofill/form_autofill_util.cc File chrome/renderer/autofill/form_autofill_util.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/5009/chrome/renderer/autofill/form_autofill_util.cc#newcode49 chrome/renderer/autofill/form_autofill_util.cc:49: using autofill::RequirementsMask; Do these lines ...
8 years ago (2012-11-30 04:04:54 UTC) #23
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/5009/chrome/renderer/autofill/form_autofill_util.cc File chrome/renderer/autofill/form_autofill_util.cc (right): https://chromiumcodereview.appspot.com/11348273/diff/5009/chrome/renderer/autofill/form_autofill_util.cc#newcode49 chrome/renderer/autofill/form_autofill_util.cc:49: using autofill::RequirementsMask; On 2012/11/30 04:04:54, Ilya Sherman wrote: > ...
8 years ago (2012-11-30 04:13:33 UTC) #24
Ilya Sherman
LGTM, thanks :)
8 years ago (2012-11-30 04:30:47 UTC) #25
Dan Beam
+jhawkins@ for chrome/common/
8 years ago (2012-11-30 22:16:51 UTC) #26
James Hawkins
LGTM with optional nit. https://chromiumcodereview.appspot.com/11348273/diff/12013/chrome/common/autofill_messages.h File chrome/common/autofill_messages.h (right): https://chromiumcodereview.appspot.com/11348273/diff/12013/chrome/common/autofill_messages.h#newcode140 chrome/common/autofill_messages.h:140: IPC_MESSAGE_ROUTED1(AutofillMsg_RequestAutocompleteSuccess, Optional nit: Consider renaming ...
8 years ago (2012-11-30 22:17:24 UTC) #27
Dan Beam
https://chromiumcodereview.appspot.com/11348273/diff/12013/chrome/common/autofill_messages.h File chrome/common/autofill_messages.h (right): https://chromiumcodereview.appspot.com/11348273/diff/12013/chrome/common/autofill_messages.h#newcode140 chrome/common/autofill_messages.h:140: IPC_MESSAGE_ROUTED1(AutofillMsg_RequestAutocompleteSuccess, On 2012/11/30 22:17:25, James Hawkins wrote: > Optional ...
8 years ago (2012-11-30 22:21:04 UTC) #28
Dan Beam
8 years ago (2012-11-30 22:22:54 UTC) #29
TBR'ing jschuh@ for chrome/common/autofill_message.h

Powered by Google App Engine
This is Rietveld 408576698