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

Issue 6930037: Autofill DOMUI Prefs should work with i18n phone numbers (Closed)

Created:
9 years, 7 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
GeorgeY, James Hawkins
CC:
chromium-reviews, GeorgeY, Paweł Hajdan Jr., Ilya Sherman, arv (Not doing code reviews)
Visibility:
Public.

Description

Autofill DOMUI Prefs should work with i18n phone numbers Adds validation to the phone and fax lists in WebUI based prefs for Autofill. Also adds the start of phone_number_i18n.cc/h module. BUG=80101 TEST=PhoneNumberI18NTest.PhoneNumbersMatch Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84320

Patch Set 1 #

Patch Set 2 : Adding DEPS. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -4 lines) Patch
A chrome/browser/autofill/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/autofill/phone_number_i18n.h View 1 chunk +21 lines, -0 lines 3 comments Download
A chrome/browser/autofill/phone_number_i18n.cc View 1 chunk +36 lines, -0 lines 2 comments Download
A chrome/browser/autofill/phone_number_i18n_unittest.cc View 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/autofill_edit_address_overlay.js View 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/autofill_options_list.js View 4 chunks +67 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 4 chunks +87 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dhollowa
9 years, 7 months ago (2011-05-05 16:09:44 UTC) #1
GeorgeY
LGTM http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.cc File chrome/browser/autofill/phone_number_i18n.cc (right): http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.cc#newcode33 chrome/browser/autofill/phone_number_i18n.cc:33: match == PhoneNumberUtil::EXACT_MATCH; Don't we want to have ...
9 years, 7 months ago (2011-05-05 18:24:25 UTC) #2
dhollowa
http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.cc File chrome/browser/autofill/phone_number_i18n.cc (right): http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.cc#newcode33 chrome/browser/autofill/phone_number_i18n.cc:33: match == PhoneNumberUtil::EXACT_MATCH; No, the short match would equate ...
9 years, 7 months ago (2011-05-05 18:31:01 UTC) #3
dhollowa
http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.h File chrome/browser/autofill/phone_number_i18n.h (right): http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.h#newcode17 chrome/browser/autofill/phone_number_i18n.h:17: const std::string& country_code); Let's generalize this once we know ...
9 years, 7 months ago (2011-05-05 19:27:04 UTC) #4
James Hawkins
On 2011/05/05 19:27:04, dhollowa wrote: > http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.h > File chrome/browser/autofill/phone_number_i18n.h (right): > > http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phone_number_i18n.h#newcode17 > ...
9 years, 7 months ago (2011-05-05 22:35:43 UTC) #5
dhollowa
James, I've reverted due to GYP issues. I'll be sure to include you on these ...
9 years, 7 months ago (2011-05-05 23:16:55 UTC) #6
dhollowa
9 years, 7 months ago (2011-05-06 01:05:22 UTC) #7
Please see http://codereview.chromium.org/6935033 for new patch.

On 2011/05/05 23:16:55, dhollowa wrote:
> James, I've reverted due to GYP issues.  I'll be sure to include you on these
in
> the future.  Please feel free to review this one now too... and I'll address
any
> issues before relanding.  Thanks.
> 
> On 2011/05/05 22:35:43, James Hawkins wrote:
> > On 2011/05/05 19:27:04, dhollowa wrote:
> > >
> >
>
http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phon...
> > > File chrome/browser/autofill/phone_number_i18n.h (right):
> > > 
> > >
> >
>
http://codereview.chromium.org/6930037/diff/1010/chrome/browser/autofill/phon...
> > > chrome/browser/autofill/phone_number_i18n.h:17: const std::string&
> > > country_code);
> > > Let's generalize this once we know we need it.  I'll leave as-is for now. 
> > > Thanks.
> > > 
> > > On 2011/05/05 18:31:01, dhollowa wrote:
> > > > Do you make use of "PHONES_SUBMATCH" ?  If so, for what?
> > > > 
> > > > On 2011/05/05 18:24:25, GeorgeY wrote:
> > > > > In my utils I have
> > > > > 
> > > > > enum PhoneMatch {
> > > > >   PHONES_NOT_EQUAL,
> > > > >   PHONES_EQUAL,  // +1(650)2345678 is equal to 1-650-234-56-78.
> > > > >   PHONES_SUBMATCH, // 650-234-56-78 or 2345678 is a submatch for
> > > > +1(650)2345678.
> > > > > };
> > > > > 
> > > > > // Compares two phones, normalizing them before comparision.
> > > > > PhoneMatch ComparePhones(const string16& phone1, const string16&
phone2,
> > > > >                          const char* locale);
> > > >
> > 
> > I'm not sure how the OWNERs check didn't kick in here, but I should have
been
> on
> > the review for this change.

Powered by Google App Engine
This is Rietveld 408576698