diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:59:05 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:59:05 +0000 |
commit | 33eb5ad09b9cc9fe9f1fb95c4ba41ace5c3b6bc8 (patch) | |
tree | 8529954cf39744ce032cbb11013167da1cd3798b /base/path_service.cc | |
parent | ba6332442ae92c544eb6629c8604c608d6aeb5cd (diff) | |
download | chromium_src-33eb5ad09b9cc9fe9f1fb95c4ba41ace5c3b6bc8.zip chromium_src-33eb5ad09b9cc9fe9f1fb95c4ba41ace5c3b6bc8.tar.gz chromium_src-33eb5ad09b9cc9fe9f1fb95c4ba41ace5c3b6bc8.tar.bz2 |
Stop using and remove deprecated file_util::TrimTrailingSeparator().
Review URL: http://codereview.chromium.org/67271
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.cc')
-rw-r--r-- | base/path_service.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/path_service.cc b/base/path_service.cc index 0c3c3e2..40866d1 100644 --- a/base/path_service.cc +++ b/base/path_service.cc @@ -219,10 +219,11 @@ bool PathService::Override(int key, const std::wstring& path) { if (!file_util::CreateDirectory(file_path)) return false; - file_util::TrimTrailingSeparator(&file_path); + FilePath fp_path = FilePath::FromWStringHack(file_path); + fp_path = fp_path.StripTrailingSeparators(); AutoLock scoped_lock(path_data->lock); - path_data->cache[key] = FilePath::FromWStringHack(file_path); + path_data->cache[key] = fp_path; path_data->overrides.insert(key); return true; } |