Index: base/file_path.cc |
=================================================================== |
--- base/file_path.cc (revision 23003) |
+++ base/file_path.cc (working copy) |
@@ -310,6 +310,15 @@ |
return FilePath(ret); |
} |
+FilePath FilePath::InsertBeforeExtensionASCII(const StringPiece& suffix) const { |
+ DCHECK(IsStringASCII(suffix)); |
+#if defined(OS_WIN) |
+ return InsertBeforeExtension(ASCIIToWide(suffix)); |
+#elif defined(OS_POSIX) |
+ return InsertBeforeExtension(suffix.as_string()); |
+#endif |
+} |
+ |
FilePath FilePath::ReplaceExtension(const StringType& extension) const { |
if (path_.empty()) |
return FilePath(); |