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

Unified Diff: components/url_fixer/url_fixer.cc

Issue 1068793002: Fixed "blocking io" from FixupPath on UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed "blocking io" from FixupURL on UI thread Created 5 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 | net/base/filename_util.h » ('j') | net/base/filename_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_fixer/url_fixer.cc
diff --git a/components/url_fixer/url_fixer.cc b/components/url_fixer/url_fixer.cc
index f10958a1122402b5d862c23e7e37d85baa6aeae2..bbab87f5e03489f1ab24a9add4a315700034547c 100644
--- a/components/url_fixer/url_fixer.cc
+++ b/components/url_fixer/url_fixer.cc
@@ -178,7 +178,7 @@ std::string FixupPath(const std::string& text) {
#endif
// Here, we know the input looks like a file.
- GURL file_url = net::FilePathToFileURL(base::FilePath(filename));
+ GURL file_url = net::FilePathToFileURLNoCWD(base::FilePath(filename));
davidben 2015/04/14 16:26:22 This is a loss of functionality for this function.
if (file_url.is_valid()) {
return base::UTF16ToUTF8(net::FormatUrl(file_url,
std::string(),
« no previous file with comments | « no previous file | net/base/filename_util.h » ('j') | net/base/filename_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698