Index: chrome/browser/net/url_fixer_upper_unittest.cc |
=================================================================== |
--- chrome/browser/net/url_fixer_upper_unittest.cc (revision 30169) |
+++ chrome/browser/net/url_fixer_upper_unittest.cc (working copy) |
@@ -196,8 +196,12 @@ |
FilePath derived_path; |
net::FileURLToFilePath(GURL(url), &derived_path); |
- return FilePath::CompareEqualIgnoreCase(derived_path.value(), |
- full_file_path.value()); |
+ FilePath::StringType derived_path_str = derived_path.value(); |
+ return (derived_path_str.length() == full_file_path.value().length()) && |
+ std::equal(derived_path_str.begin(), |
+ derived_path_str.end(), |
+ full_file_path.value().begin(), |
+ CaseInsensitiveCompare<FilePath::CharType>()); |
} |
struct fixup_case { |