From a97f2b462ac8062e59849bfa2323d90f461fd5ff Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 21 Apr 2009 23:15:45 +0000 Subject: Reverting 14152. TBR=tony Review URL: http://codereview.chromium.org/87066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14154 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base/file_util.h') diff --git a/base/file_util.h b/base/file_util.h index 8f9cfb1..6728a0d 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -55,6 +55,11 @@ bool EndsWithSeparator(const std::wstring& path); // exists. Returns true if |path| is an existing directory, false otherwise. bool EnsureEndsWithSeparator(FilePath* path); +// Modifies a string by trimming all trailing separators from the end. +// Deprecated. FilePath does this automatically, and if it's constructed from a +// path with a trailing separator, StripTrailingSeparators() may be used. +void TrimTrailingSeparator(std::wstring* dir); + // Strips the topmost directory from the end of 'dir'. Assumes 'dir' does not // refer to a file. // If 'dir' is a root directory, return without change. -- cgit v1.1