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

Issue 6213002: Propagate correct data to the Toolbar servers (Closed)

Created:
9 years, 11 months ago by GeorgeY
Modified:
9 years, 6 months ago
Reviewers:
Ilya Sherman, dhollowa
CC:
chromium-reviews, Paweł Hajdan Jr., James Hawkins
Visibility:
Public.

Description

Propagate correct data to the Toolbar servers BUG=67219 TEST=unit-tested Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72292

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 14

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 3

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 7

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Total comments: 21

Patch Set 17 : '' #

Total comments: 7

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Total comments: 13

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -47 lines) Patch
M chrome/browser/autofill/form_structure.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/autofill/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +61 lines, -20 lines 2 comments Download
M chrome/browser/autofill/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +221 lines, -25 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
GeorgeY
9 years, 11 months ago (2011-01-11 21:08:57 UTC) #1
Ilya Sherman
http://codereview.chromium.org/6213002/diff/25001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/25001/chrome/browser/autofill/autofill_manager.cc#newcode524 chrome/browser/autofill/autofill_manager.cc:524: download_manager_.StartUploadRequest(*(upload_form_structure_.get()), nit: For the sake of matching indentation, please ...
9 years, 11 months ago (2011-01-11 23:17:37 UTC) #2
dhollowa
Preliminary nits. http://codereview.chromium.org/6213002/diff/39001/chrome/browser/autofill/autofill_download.h File chrome/browser/autofill/autofill_download.h (right): http://codereview.chromium.org/6213002/diff/39001/chrome/browser/autofill/autofill_download.h#newcode76 chrome/browser/autofill/autofill_download.h:76: char const* present_data); We should use const ...
9 years, 11 months ago (2011-01-11 23:29:29 UTC) #3
GeorgeY
http://codereview.chromium.org/6213002/diff/25001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/25001/chrome/browser/autofill/autofill_manager.cc#newcode524 chrome/browser/autofill/autofill_manager.cc:524: download_manager_.StartUploadRequest(*(upload_form_structure_.get()), On 2011/01/11 23:17:37, Ilya Sherman wrote: > nit: ...
9 years, 11 months ago (2011-01-13 23:22:28 UTC) #4
Ilya Sherman
http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/autofill_download.cc File chrome/browser/autofill/autofill_download.cc (right): http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/autofill_download.cc#newcode90 chrome/browser/autofill/autofill_download.cc:90: char const* present_data) { nit: You use |present_data| here ...
9 years, 11 months ago (2011-01-13 23:44:37 UTC) #5
dhollowa
http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/form_structure.cc#newcode117 chrome/browser/autofill/form_structure.cc:117: buzz::XmlElement autofil_request_xml(buzz::QName("autofillupload")); s/autofil_request_xml/autofill_request_xml/ http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h File chrome/browser/autofill/autofill_manager.h (right): http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h#newcode72 chrome/browser/autofill/autofill_manager.h:72: ...
9 years, 11 months ago (2011-01-14 18:40:58 UTC) #6
GeorgeY
http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/autofill_download.cc File chrome/browser/autofill/autofill_download.cc (right): http://codereview.chromium.org/6213002/diff/53001/chrome/browser/autofill/autofill_download.cc#newcode90 chrome/browser/autofill/autofill_download.cc:90: char const* present_data) { On 2011/01/13 23:44:37, Ilya Sherman ...
9 years, 11 months ago (2011-01-18 21:04:56 UTC) #7
dhollowa
http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h File chrome/browser/autofill/autofill_manager.h (right): http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h#newcode72 chrome/browser/autofill/autofill_manager.h:72: void HandleSubmit(std::string const& data_present); Almost. #4 didn't get done. ...
9 years, 11 months ago (2011-01-18 21:48:09 UTC) #8
GeorgeY
On 2011/01/18 21:48:09, dhollowa wrote: > http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h > File chrome/browser/autofill/autofill_manager.h (right): > > http://codereview.chromium.org/6213002/diff/87001/chrome/browser/autofill/autofill_manager.h#newcode72 > ...
9 years, 11 months ago (2011-01-18 22:01:13 UTC) #9
dhollowa
http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_download.h File chrome/browser/autofill/autofill_download.h (right): http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_download.h#newcode133 chrome/browser/autofill/autofill_download.h:133: std::vector<uint8> presence_bitfield_; I'm wondering why we need to store ...
9 years, 11 months ago (2011-01-18 22:11:40 UTC) #10
dhollowa
http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_manager.cc#newcode503 chrome/browser/autofill/autofill_manager.cc:503: } else { As per our discussion, let's pull ...
9 years, 11 months ago (2011-01-18 22:31:26 UTC) #11
GeorgeY
http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/115001/chrome/browser/autofill/autofill_manager.cc#newcode503 chrome/browser/autofill/autofill_manager.cc:503: } else { On 2011/01/18 22:31:26, dhollowa wrote: > ...
9 years, 11 months ago (2011-01-20 19:12:29 UTC) #12
dhollowa
The present data unit tests seem to have gone missing along the way. Also, once ...
9 years, 11 months ago (2011-01-20 22:21:25 UTC) #13
Ilya Sherman
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc#newcode488 chrome/browser/autofill/autofill_manager.cc:488: DCHECK(!field_types.empty()); What happened to this bit of code? if ...
9 years, 11 months ago (2011-01-21 00:25:58 UTC) #14
GeorgeY
On 2011/01/20 22:21:25, dhollowa wrote: > The present data unit tests seem to have gone ...
9 years, 11 months ago (2011-01-21 00:34:49 UTC) #15
GeorgeY
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc#newcode488 chrome/browser/autofill/autofill_manager.cc:488: DCHECK(!field_types.empty()); On 2011/01/21 00:25:58, Ilya Sherman wrote: > What ...
9 years, 11 months ago (2011-01-21 00:39:02 UTC) #16
Ilya Sherman
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc#newcode488 chrome/browser/autofill/autofill_manager.cc:488: DCHECK(!field_types.empty()); On 2011/01/21 00:39:02, GeorgeY wrote: > On 2011/01/21 ...
9 years, 11 months ago (2011-01-21 00:46:51 UTC) #17
dhollowa
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc#newcode488 chrome/browser/autofill/autofill_manager.cc:488: DCHECK(!field_types.empty()); Ilya is correct. I wrote a "Washington Irving" ...
9 years, 11 months ago (2011-01-21 02:14:57 UTC) #18
dhollowa
The original unit test for data present tested |ConvertPresenceBitsToString()| in isolation. We should get that ...
9 years, 11 months ago (2011-01-21 02:16:38 UTC) #19
dhollowa
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc#newcode111 chrome/browser/autofill/form_structure.cc:111: bool auto_fillable = IsAutoFillable(false); I am unclear why this ...
9 years, 11 months ago (2011-01-21 03:18:57 UTC) #20
Ilya Sherman
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc#newcode111 chrome/browser/autofill/form_structure.cc:111: bool auto_fillable = IsAutoFillable(false); On 2011/01/21 03:18:57, dhollowa wrote: ...
9 years, 11 months ago (2011-01-21 03:30:22 UTC) #21
GeorgeY
Will re-upload when tests pass http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/autofill_manager.cc#newcode488 chrome/browser/autofill/autofill_manager.cc:488: DCHECK(!field_types.empty()); On 2011/01/21 02:14:57, ...
9 years, 11 months ago (2011-01-21 03:41:32 UTC) #22
Ilya Sherman
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc#newcode111 chrome/browser/autofill/form_structure.cc:111: bool auto_fillable = IsAutoFillable(false); On 2011/01/21 03:41:32, GeorgeY wrote: ...
9 years, 11 months ago (2011-01-21 03:45:02 UTC) #23
dhollowa
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc#newcode437 chrome/browser/autofill/form_structure.cc:437: std::string FormStructure::ConvertPresenceBitsToString() const { It looks like we're setting ...
9 years, 11 months ago (2011-01-21 04:05:43 UTC) #24
dhollowa
http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/form_structure.cc#newcode444 chrome/browser/autofill/form_structure.cc:444: presence_bitfield.resize((MAX_VALID_FIELD_TYPE + 0x7) >> 3); I'm with Ilya, I'd ...
9 years, 11 months ago (2011-01-21 16:44:57 UTC) #25
dhollowa
http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/personal_data_manager_unittest.cc File chrome/browser/autofill/personal_data_manager_unittest.cc (right): http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/personal_data_manager_unittest.cc#newcode281 chrome/browser/autofill/personal_data_manager_unittest.cc:281: // The message loop will exit when the mock ...
9 years, 11 months ago (2011-01-21 16:47:37 UTC) #26
dhollowa
http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/form_structure_unittest.cc File chrome/browser/autofill/form_structure_unittest.cc (right): http://codereview.chromium.org/6213002/diff/102012/chrome/browser/autofill/form_structure_unittest.cc#newcode1878 chrome/browser/autofill/form_structure_unittest.cc:1878: // Match second field as both first and last. ...
9 years, 11 months ago (2011-01-21 17:17:05 UTC) #27
GeorgeY
Yes, there was a bug that we did not process the cleanup correctly, which can ...
9 years, 11 months ago (2011-01-21 17:32:16 UTC) #28
GeorgeY
http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/137001/chrome/browser/autofill/form_structure.cc#newcode437 chrome/browser/autofill/form_structure.cc:437: std::string FormStructure::ConvertPresenceBitsToString() const { On 2011/01/21 04:05:43, dhollowa wrote: ...
9 years, 11 months ago (2011-01-21 17:32:37 UTC) #29
GeorgeY
New version is in :)
9 years, 11 months ago (2011-01-22 00:22:30 UTC) #30
Ilya Sherman
LGTM with below nits addressed. http://codereview.chromium.org/6213002/diff/95004/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/95004/chrome/browser/autofill/form_structure.cc#newcode460 chrome/browser/autofill/form_structure.cc:460: } nit: You already ...
9 years, 11 months ago (2011-01-22 01:12:34 UTC) #31
GeorgeY
http://codereview.chromium.org/6213002/diff/95004/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/95004/chrome/browser/autofill/form_structure.cc#newcode460 chrome/browser/autofill/form_structure.cc:460: } On 2011/01/22 01:12:35, Ilya Sherman wrote: > nit: ...
9 years, 11 months ago (2011-01-22 01:40:40 UTC) #32
dhollowa
LGTM! Let the data flow.
9 years, 11 months ago (2011-01-22 01:42:46 UTC) #33
dhollowa
Oh wait... one problem. If the set of |possible_types()| is empty for a given field, ...
9 years, 11 months ago (2011-01-22 21:22:42 UTC) #34
Ilya Sherman
On 2011/01/22 21:22:42, dhollowa wrote: > Oh wait... one problem. If the set of |possible_types()| ...
9 years, 11 months ago (2011-01-23 00:03:34 UTC) #35
dhollowa
Ah, great. Ok then. On 2011/01/23 00:03:34, Ilya Sherman wrote: > On 2011/01/22 21:22:42, dhollowa ...
9 years, 11 months ago (2011-01-23 00:14:03 UTC) #36
GeorgeY
On 2011/01/22 21:22:42, dhollowa wrote: > Oh wait... one problem. If the set of |possible_types()| ...
9 years, 11 months ago (2011-01-23 00:50:13 UTC) #37
Ilya Sherman
http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/form_structure.cc#newcode416 chrome/browser/autofill/form_structure.cc:416: types.insert(UNKNOWN_TYPE); This is already covered in PersonalDataManager::GetPossibleFieldTypes -- DCHECK(!types.empty()) ...
9 years, 11 months ago (2011-01-23 01:08:02 UTC) #38
GeorgeY
On 2011/01/23 01:08:02, Ilya Sherman wrote: > http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/form_structure.cc > File chrome/browser/autofill/form_structure.cc (right): > > http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/form_structure.cc#newcode416 ...
9 years, 11 months ago (2011-01-23 06:32:46 UTC) #39
Ilya Sherman
On 2011/01/23 06:32:46, GeorgeY wrote: > On 2011/01/23 01:08:02, Ilya Sherman wrote: > > > ...
9 years, 11 months ago (2011-01-23 08:37:35 UTC) #40
GeorgeY
9 years, 11 months ago (2011-01-25 00:23:02 UTC) #41
On 2011/01/23 08:37:35, Ilya Sherman wrote:
> On 2011/01/23 06:32:46, GeorgeY wrote:
> > On 2011/01/23 01:08:02, Ilya Sherman wrote:
> > >
> >
>
http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/fo...
> > > File chrome/browser/autofill/form_structure.cc (right):
> > > 
> > >
> >
>
http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/fo...
> > > chrome/browser/autofill/form_structure.cc:416: types.insert(UNKNOWN_TYPE);
> > > This is already covered in PersonalDataManager::GetPossibleFieldTypes --
> > > DCHECK(!types.empty()) would be better.
> > > 
> > >
> >
>
http://codereview.chromium.org/6213002/diff/126003/chrome/browser/autofill/fo...
> > > chrome/browser/autofill/form_structure.cc:452: types.insert(UNKNOWN_TYPE);
> > > Ditto
> > 
> > Wasn't sure that's ever happens now i *know*. Changed to DCHECK()
> 
> Looks like this check currently fails for
> AutoFillDownloadTest.QueryAndUploadTest... reverting your commit of this patch
> for that reason.
Removed the DCHECKs as they were breaking unit-tests

Powered by Google App Engine
This is Rietveld 408576698