Index: chrome/browser/net/url_fixer_upper.cc |
diff --git a/chrome/browser/net/url_fixer_upper.cc b/chrome/browser/net/url_fixer_upper.cc |
index 1dadc5b44390d5258e903b0362c48361dda8fb88..e965be8ef057d2469bae8152eabf06b7516b7b1e 100644 |
--- a/chrome/browser/net/url_fixer_upper.cc |
+++ b/chrome/browser/net/url_fixer_upper.cc |
@@ -103,8 +103,8 @@ void PrepareStringForFileOps(const base::FilePath& text, |
// returns false and leaves |full_path| unchanged. |
bool ValidPathForFile(const base::FilePath::StringType& text, |
base::FilePath* full_path) { |
- base::FilePath file_path(text); |
- if (!file_util::AbsolutePath(&file_path)) |
+ base::FilePath file_path = base::MakeAbsoluteFilePath(base::FilePath(text)); |
+ if (file_path.empty()) |
return false; |
if (!file_util::PathExists(file_path)) |