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..88d3fb0733313e6dd91fdc1ffa599c583ff8abea 100644 |
--- a/chrome/browser/autofill/autofill_profile.cc |
+++ b/chrome/browser/autofill/autofill_profile.cc |
@@ -543,6 +543,7 @@ struct CaseInsensitiveStringEquals |
: public std::binary_function<string16, string16, bool> |
{ |
bool operator()(const string16& x, const string16& y) const { |
+ if (x.size() != y.size()) return false; |
dhollowa
2011/08/15 21:45:15
Elsewhere in the Autofill code we're using |String
James Hawkins
2011/08/15 21:57:11
Done.
|
return std::equal(x.begin(), x.end(), y.begin(), |
base::CaseInsensitiveCompare<string16::value_type>()); |
} |