diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:01:01 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:01:01 +0000 |
commit | d841205ef77d7f98bf780516d3be96a3ba6c6f29 (patch) | |
tree | cb95bf8fc37fca6c95ddc960379f8191d2e68ea1 /chrome/test | |
parent | b6c911a716816238f5155ef1522622d76d4665a2 (diff) | |
download | chromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.zip chromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.tar.gz chromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.tar.bz2 |
Stop using and remove deprecated file_util::TrimFilename().
Review URL: http://codereview.chromium.org/67267
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/in_process_browser_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc index 25cc6ee..9cac992 100644 --- a/chrome/test/in_process_browser_test.cc +++ b/chrome/test/in_process_browser_test.cc @@ -5,6 +5,7 @@ #include "chrome/test/in_process_browser_test.h" #include "base/command_line.h" +#include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "chrome/browser/browser.h" @@ -114,7 +115,8 @@ void InProcessBrowserTest::SetUp() { // try to use unit_test.exe. std::wstring renderer_path; PathService::Get(base::FILE_EXE, &renderer_path); - file_util::TrimFilename(&renderer_path); + FilePath fp_renderer_path = FilePath::FromWStringHack(renderer_path); + renderer_path = fp_renderer_path.DirName().ToWStringHack(); file_util::AppendToPath(&renderer_path, chrome::kBrowserProcessExecutableName); command_line->AppendSwitchWithValue(switches::kRendererPath, renderer_path); |