Add an AddExtension() method in FilePath

This provides an AddExtension() method in FilePath, which will append an
extension to the FilePath. This provides clearer, more deliberate functionality
than AppendASCII(), and allows us to add extensions without using
ReplaceExtension, which will not work on files which already have extension (or
appear to, e.g. temp files).

BUG=NONE
TEST=FilePathTest.AddExtension (added), previous FilePathTests.


Review URL: http://codereview.chromium.org/10067002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133839 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 922828b3ae178dc7c7985b96f54a540f1f22cc9f
3 files changed
tree: e979c78830bb5923d9bb3a0b4f7099f329881cc9
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/