diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 16:50:03 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 16:50:03 +0000 |
commit | 4792a2655593ad5fcb436f8b88184540c570a46e (patch) | |
tree | 11d176cb8cbc9f32c79a91433193eb0c7ab018b7 /base/base_paths_linux.cc | |
parent | aa075e7d76093df41e33c6866c48080f49daedbd (diff) | |
download | chromium_src-4792a2655593ad5fcb436f8b88184540c570a46e.zip chromium_src-4792a2655593ad5fcb436f8b88184540c570a46e.tar.gz chromium_src-4792a2655593ad5fcb436f8b88184540c570a46e.tar.bz2 |
Move more code to using FilePath.
Review URL: http://codereview.chromium.org/11252
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_linux.cc')
-rw-r--r-- | base/base_paths_linux.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/base_paths_linux.cc b/base/base_paths_linux.cc index d161114..c442da2 100644 --- a/base/base_paths_linux.cc +++ b/base/base_paths_linux.cc @@ -15,7 +15,7 @@ namespace base { -bool PathProviderLinux(int key, std::wstring* result) { +bool PathProviderLinux(int key, FilePath* result) { FilePath path; switch (key) { case base::FILE_EXE: @@ -27,7 +27,7 @@ bool PathProviderLinux(int key, std::wstring* result) { return false; } bin_dir[bin_dir_size] = 0; - *result = base::SysNativeMBToWide(bin_dir); + *result = FilePath(bin_dir); return true; } case base::DIR_SOURCE_ROOT: @@ -37,7 +37,7 @@ bool PathProviderLinux(int key, std::wstring* result) { return false; path = path.Append(FilePath::kParentDirectory) .Append(FilePath::kParentDirectory); - *result = path.ToWStringHack(); + *result = path; return true; } return false; |