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

Issue 261993006: Modified to allow to preserve two-word string in first-name and last-name in autofill profile. (Closed)

Created:
6 years, 7 months ago by Pritam Nikam
Modified:
6 years, 6 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Modified to allow to preserve two-word string in first-name and last-name in autofill profile. BUG=132332 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278058

Patch Set 1 #

Patch Set 2 : Modified to allow to preserve two-word string in first-name and last-name in autofill profile. #

Patch Set 3 : "Corrected parsing full_name_ to form first_, middle_ and last_ for autofill profile." #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : Incorporated review comments. #

Total comments: 22

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Total comments: 36

Patch Set 8 : #

Total comments: 8

Patch Set 9 : Updated unit test cases to cover additional a check. #

Patch Set 10 : Incorporated review comments and added unit tests. #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : Added case-insensativity handling for autofill nameinfo and unit-tests. #

Total comments: 4

Patch Set 13 : Added case-insensitivity handling and unit-tests. #

Total comments: 4

Patch Set 14 : Incorporated review comments and updated unit-tests. #

Total comments: 4

Patch Set 15 : Incorporated review comments and modified unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -1 line) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +54 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +202 lines, -0 lines 0 comments Download
M components/autofill/core/browser/contact_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/contact_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/contact_info_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
Pritam Nikam
Please take a look for this patch.
6 years, 7 months ago (2014-05-03 10:45:34 UTC) #1
Ilya Sherman
Thanks for taking a look at this! However, this isn't the right approach. We *should* ...
6 years, 7 months ago (2014-05-07 00:48:44 UTC) #2
Pritam Nikam
On 2014/05/07 00:48:44, Ilya Sherman wrote: > Thanks for taking a look at this! However, ...
6 years, 7 months ago (2014-05-07 15:02:30 UTC) #3
Ilya Sherman
On 2014/05/07 15:02:30, Pritam Nikam wrote: > On 2014/05/07 00:48:44, Ilya Sherman wrote: > > ...
6 years, 7 months ago (2014-05-08 00:46:23 UTC) #4
Pritam Nikam
The CQ bit was checked by pritam.nikam@samsung.com
6 years, 7 months ago (2014-05-09 11:08:25 UTC) #5
Pritam Nikam
The CQ bit was unchecked by pritam.nikam@samsung.com
6 years, 7 months ago (2014-05-09 11:08:26 UTC) #6
Pritam Nikam
I've submitted a new patch for tokenizing ful_name_ to get first_, middle_ & last_ name. ...
6 years, 7 months ago (2014-05-09 11:42:01 UTC) #7
Ilya Sherman
Thanks. The ContactInfo class isn't the right place to make this fix, however. Rather, the ...
6 years, 7 months ago (2014-05-13 03:34:28 UTC) #8
Pritam Nikam
Thanks Ilya for input. I've explored this code excerpt, please correct my understanding - autofill::AutofillProfile::OverwriteWithOrAddTo() ...
6 years, 7 months ago (2014-05-13 06:42:08 UTC) #9
Pritam Nikam
Added patch set #4 for autofill profiles with identical full names, prefer to keep ones ...
6 years, 7 months ago (2014-05-13 14:31:52 UTC) #10
Ilya Sherman
https://codereview.chromium.org/261993006/diff/80001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/261993006/diff/80001/components/autofill/core/browser/autofill_profile.cc#newcode368 components/autofill/core/browser/autofill_profile.cc:368: NameInfo importedProfile = profiles[0]; Why pass a vector if ...
6 years, 7 months ago (2014-05-15 22:21:27 UTC) #11
Ilya Sherman
On 2014/05/13 06:42:08, Pritam Nikam wrote: > Few queries I'm having: > A. when user ...
6 years, 7 months ago (2014-05-15 22:25:11 UTC) #12
Pritam Nikam
Thanks for review. Incorporated review comments, patch #5 is uploaded for review. Please have a ...
6 years, 7 months ago (2014-05-19 12:09:14 UTC) #13
Pritam Nikam
Incorporated review comments in new patch #5. Please have a look.
6 years, 7 months ago (2014-05-26 04:45:12 UTC) #14
Ilya Sherman
Thanks. Apologies for my delay in reviewing this code -- I've been traveling, and hence ...
6 years, 6 months ago (2014-05-29 07:38:03 UTC) #15
Pritam Nikam
Submitted new patch to incorporated review comments and added few test-cases to cover possible known ...
6 years, 6 months ago (2014-05-30 11:12:39 UTC) #16
Pritam Nikam
Incorporated review comments in new patch #6. Please have a look.
6 years, 6 months ago (2014-05-30 11:13:34 UTC) #17
Ilya Sherman
https://codereview.chromium.org/261993006/diff/120001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/261993006/diff/120001/components/autofill/core/browser/autofill_profile.cc#newcode524 components/autofill/core/browser/autofill_profile.cc:524: DCHECK(names.size() == 1); Thanks for listing the cases from ...
6 years, 6 months ago (2014-05-31 00:34:41 UTC) #18
Pritam Nikam
Thanks Ilya! Incorporated review comments & submitted new patch #7 for review. Please have a ...
6 years, 6 months ago (2014-05-31 10:30:40 UTC) #19
Pritam Nikam
Thanks Ilya! Incorporated review comments & submitted new patch #7 for review. Please have a ...
6 years, 6 months ago (2014-05-31 10:31:53 UTC) #20
Ilya Sherman
Thanks! https://codereview.chromium.org/261993006/diff/180001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/261993006/diff/180001/components/autofill/core/browser/autofill_profile.cc#newcode523 components/autofill/core/browser/autofill_profile.cc:523: std::vector<NameInfo> name_list(name_); nit: Let's call this "result" or ...
6 years, 6 months ago (2014-06-03 00:25:32 UTC) #21
Pritam Nikam
Thanks Ilya! I have incorporated review comments and new patch is ready for review. Please ...
6 years, 6 months ago (2014-06-03 15:37:33 UTC) #22
Pritam Nikam
Thanks Ilya! I have incorporated review comments and new patch (#8) is ready for review. ...
6 years, 6 months ago (2014-06-03 15:38:57 UTC) #23
Ilya Sherman
Thanks, Pritam! This is getting really close :) https://codereview.chromium.org/261993006/diff/200001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/261993006/diff/200001/components/autofill/core/browser/autofill_profile.cc#newcode559 components/autofill/core/browser/autofill_profile.cc:559: (imported_name ...
6 years, 6 months ago (2014-06-03 22:09:51 UTC) #24
Pritam Nikam
Thanks Ilya! I've tried to answer to the comments you mentioned. Sorry, but i believe, ...
6 years, 6 months ago (2014-06-04 06:54:45 UTC) #25
Pritam Nikam
Thanks Ilya! I've tried to answer to the comments you mentioned. Sorry, but i believe, ...
6 years, 6 months ago (2014-06-04 07:05:19 UTC) #26
Ilya Sherman
https://codereview.chromium.org/261993006/diff/200001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/261993006/diff/200001/components/autofill/core/browser/autofill_profile.cc#newcode559 components/autofill/core/browser/autofill_profile.cc:559: (imported_name != heuristically_parsed_name)) On 2014/06/04 06:54:44, Pritam Nikam wrote: ...
6 years, 6 months ago (2014-06-04 22:38:27 UTC) #27
Pritam Nikam
Thanks Ilya! Incorporated review comments and new patch set #10 is ready for review. Please ...
6 years, 6 months ago (2014-06-07 06:25:12 UTC) #28
Pritam Nikam
Thanks Ilya! Incorporated review comments and new patch set #10 is ready for review. Please ...
6 years, 6 months ago (2014-06-07 06:25:35 UTC) #29
Ilya Sherman
LGTM % a final nit. Thanks, Pritam! https://codereview.chromium.org/261993006/diff/250001/components/autofill/core/browser/autofill_profile_unittest.cc File components/autofill/core/browser/autofill_profile_unittest.cc (right): https://codereview.chromium.org/261993006/diff/250001/components/autofill/core/browser/autofill_profile_unittest.cc#newcode1005 components/autofill/core/browser/autofill_profile_unittest.cc:1005: // Cases ...
6 years, 6 months ago (2014-06-09 22:11:52 UTC) #30
Pritam Nikam
Thanks Ilya! I've updated the comments in new patch (#11). Please have a look. https://codereview.chromium.org/261993006/diff/250001/components/autofill/core/browser/autofill_profile_unittest.cc ...
6 years, 6 months ago (2014-06-11 04:11:43 UTC) #31
Pritam Nikam
Thanks Ilya! I've updated the comments in new patch (#11). Please have a look.
6 years, 6 months ago (2014-06-11 04:12:16 UTC) #32
Pritam Nikam
The CQ bit was checked by pritam.nikam@samsung.com
6 years, 6 months ago (2014-06-11 04:13:31 UTC) #33
Pritam Nikam
The CQ bit was unchecked by pritam.nikam@samsung.com
6 years, 6 months ago (2014-06-11 04:13:33 UTC) #34
Pritam Nikam
The CQ bit was checked by pritam.nikam@samsung.com
6 years, 6 months ago (2014-06-11 11:41:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pritam.nikam@samsung.com/261993006/270001
6 years, 6 months ago (2014-06-11 11:44:14 UTC) #36
Pritam Nikam
The CQ bit was unchecked by pritam.nikam@samsung.com
6 years, 6 months ago (2014-06-11 14:26:33 UTC) #37
Pritam Nikam
Hi Ilya, 2 test-cases were failing with this patch as case-insensateness was not handled. I've ...
6 years, 6 months ago (2014-06-12 05:32:41 UTC) #38
Ilya Sherman
https://codereview.chromium.org/261993006/diff/290001/components/autofill/core/browser/autofill_profile_unittest.cc File components/autofill/core/browser/autofill_profile_unittest.cc (right): https://codereview.chromium.org/261993006/diff/290001/components/autofill/core/browser/autofill_profile_unittest.cc#newcode1008 components/autofill/core/browser/autofill_profile_unittest.cc:1008: // Cases where merging 2 profiles with same fullnames ...
6 years, 6 months ago (2014-06-12 22:35:11 UTC) #39
Pritam Nikam
Thanks Ilya! I've added a function named EqualsIgnoreCase() to handle case-insensitivity. Please have a look. ...
6 years, 6 months ago (2014-06-13 14:03:33 UTC) #40
Ilya Sherman
https://codereview.chromium.org/261993006/diff/310001/components/autofill/core/browser/contact_info.h File components/autofill/core/browser/contact_info.h (right): https://codereview.chromium.org/261993006/diff/310001/components/autofill/core/browser/contact_info.h#newcode26 components/autofill/core/browser/contact_info.h:26: bool operator!=(const NameInfo& info); Are these operators still needed, ...
6 years, 6 months ago (2014-06-13 21:13:49 UTC) #41
Pritam Nikam
Thanks Ilya for your inputs. Incorporated review comments with new patch & uploaded for review. ...
6 years, 6 months ago (2014-06-14 10:27:03 UTC) #42
Ilya Sherman
Thanks, Pritam. LGTM with the following comments addressed: https://codereview.chromium.org/261993006/diff/330001/components/autofill/core/browser/contact_info.h File components/autofill/core/browser/contact_info.h (right): https://codereview.chromium.org/261993006/diff/330001/components/autofill/core/browser/contact_info.h#newcode26 components/autofill/core/browser/contact_info.h:26: // ...
6 years, 6 months ago (2014-06-16 20:28:18 UTC) #43
Pritam Nikam
Thanks Ilya. I've uploaded new patch after incorporating review comments. Please have a look. https://codereview.chromium.org/261993006/diff/330001/components/autofill/core/browser/contact_info.h ...
6 years, 6 months ago (2014-06-18 08:27:19 UTC) #44
Pritam Nikam
The CQ bit was checked by pritam.nikam@samsung.com
6 years, 6 months ago (2014-06-18 08:41:17 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pritam.nikam@samsung.com/261993006/350001
6 years, 6 months ago (2014-06-18 08:42:21 UTC) #46
Pritam Nikam
Bot failed for : android_dbg_triggered_tests Failed slave_steps failed androidwebview_instrumentation_tests. C 139.708s Main CRASH (1 tests): ...
6 years, 6 months ago (2014-06-18 13:58:36 UTC) #47
commit-bot: I haz the power
Change committed as 278058
6 years, 6 months ago (2014-06-18 14:36:11 UTC) #48
Ilya Sherman
On 2014/06/18 13:58:36, Pritam Nikam wrote: > Bot failed for : android_dbg_triggered_tests > > Failed ...
6 years, 6 months ago (2014-06-18 17:04:24 UTC) #49
Pritam Nikam
6 years, 6 months ago (2014-06-19 05:39:39 UTC) #50
Message was sent while issue was closed.
On 2014/06/18 17:04:24, Ilya Sherman wrote:
> On 2014/06/18 13:58:36, Pritam Nikam wrote:
> > Bot failed for : android_dbg_triggered_tests 
> > 
> > Failed slave_steps failed androidwebview_instrumentation_tests.
> > C  139.708s Main  CRASH (1 tests):
> >
>
[org.chromium.android_webview.test.ClientOnPageFinishedTest#testOnPageFinishedCalledAfterError]
> > 
> > These does not seems to be related to my changes.
> > Are these existing failures in current chromoium android bot?
> 
> Yeah, unfortunately, it's normal to see some flaky failures on a few bots.  As
> you can see, though, the infrastructure will often work around these issues by
> retrying failed runs.

Thanks Ilya!
It was a great learning. Many thanks for your guidance & forbearance.

Powered by Google App Engine
This is Rietveld 408576698