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

Unified Diff: chrome/browser/net/url_fixer_upper_unittest.cc

Issue 337042: Revert 30168 - Commit patch set from http://codereview.chromium.org/149796... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « chrome/browser/download/download_util.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698