Index: base/file_path.cc |
=================================================================== |
--- base/file_path.cc (revision 8363) |
+++ base/file_path.cc (working copy) |
@@ -252,6 +252,15 @@ |
return Append(component.value()); |
} |
+FilePath FilePath::AppendASCII(const std::string& component) const { |
+ DCHECK(IsStringASCII(component)); |
+#if defined(OS_WIN) |
+ return Append(ASCIIToWide(component)); |
+#elif defined(OS_POSIX) |
+ return Append(component); |
+#endif |
+} |
+ |
bool FilePath::IsAbsolute() const { |
return IsPathAbsolute(path_); |
} |