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

Unified Diff: chrome/browser/autofill/form_group.cc

Issue 6902113: Merge 83280 - Aggregated profiles that contains same name but different casing are being merged.M... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/autofill/merge/input/case.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/form_group.cc
===================================================================
--- chrome/browser/autofill/form_group.cc (revision 83348)
+++ chrome/browser/autofill/form_group.cc (working copy)
@@ -31,7 +31,8 @@
for (FieldTypeSet::const_iterator iter = types.begin(); iter != types.end();
++iter) {
- if (GetInfo(*iter) != form_group.GetInfo(*iter))
+ if (StringToLowerASCII(GetInfo(*iter)) !=
+ StringToLowerASCII(form_group.GetInfo(*iter)))
return false;
}
@@ -53,7 +54,8 @@
for (FieldTypeSet::const_iterator iter = intersection.begin();
iter != intersection.end(); ++iter) {
- if (GetInfo(*iter) != form_group.GetInfo(*iter))
+ if (StringToLowerASCII(GetInfo(*iter)) !=
+ StringToLowerASCII(form_group.GetInfo(*iter)))
return false;
}
« no previous file with comments | « no previous file | chrome/test/data/autofill/merge/input/case.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698