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

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

Issue 6883211: Aggregated profiles that contains same name but different casing are being merged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
diff --git a/chrome/browser/autofill/form_group.cc b/chrome/browser/autofill/form_group.cc
index 4baa3318654e141a6e9376655a4f5abe09ad8587..1f17f07289bb8cce658c7cfc6eb9efb97d537d97 100644
--- a/chrome/browser/autofill/form_group.cc
+++ b/chrome/browser/autofill/form_group.cc
@@ -31,7 +31,8 @@ bool FormGroup::IsSubsetOf(const FormGroup& form_group) const {
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 @@ bool FormGroup::IntersectionOfTypesHasEqualValues(
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