diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 21:03:58 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 21:03:58 +0000 |
commit | 777d59083eaaa3649903c87fe1f9b79b1e113c2b (patch) | |
tree | c1493f35081f8eb5430efdf982b1ab0019355dc1 /base/file_util.cc | |
parent | 47e4c8793c51d873957c3b6329d020c99f83d1d7 (diff) | |
download | chromium_src-777d59083eaaa3649903c87fe1f9b79b1e113c2b.zip chromium_src-777d59083eaaa3649903c87fe1f9b79b1e113c2b.tar.gz chromium_src-777d59083eaaa3649903c87fe1f9b79b1e113c2b.tar.bz2 |
Revert "Remove deprecated AbsolutePath function."
This reverts commit r28593. Random guess at build breakage.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 37adb04..d3a989b5 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -294,6 +294,13 @@ bool ReadFileToString(const std::wstring& path, std::string* contents) { return ReadFileToString(FilePath::FromWStringHack(path), contents); } +bool AbsolutePath(std::wstring* path_str) { + FilePath path(FilePath::FromWStringHack(*path_str)); + if (!AbsolutePath(&path)) + return false; + *path_str = path.ToWStringHack(); + return true; +} void AppendToPath(std::wstring* path, const std::wstring& new_ending) { if (!path) { NOTREACHED(); |