Index: chrome/browser/autofill/autofill_profile.cc |
diff --git a/chrome/browser/autofill/autofill_profile.cc b/chrome/browser/autofill/autofill_profile.cc |
index bdeab8370d66091795e05a20be96190330243b81..0cf907b63f04511cc4555e8dd6b43875ea2f1b5b 100644 |
--- a/chrome/browser/autofill/autofill_profile.cc |
+++ b/chrome/browser/autofill/autofill_profile.cc |
@@ -543,8 +543,8 @@ struct CaseInsensitiveStringEquals |
: public std::binary_function<string16, string16, bool> |
{ |
bool operator()(const string16& x, const string16& y) const { |
- return std::equal(x.begin(), x.end(), y.begin(), |
- base::CaseInsensitiveCompare<string16::value_type>()); |
+ if (x.size() != y.size()) return false; |
Ilya Sherman
2011/08/17 00:58:55
nit: The size check isn't actually necessary if us
|
+ return StringToLowerASCII(x) == StringToLowerASCII(y); |
} |
}; |