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

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

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 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
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))

Powered by Google App Engine
This is Rietveld 408576698