From 1f733cf713cdb0a05f24657a278d49c3a4b88a30 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Wed, 30 Sep 2009 20:46:33 +0000 Subject: Landing patch from contributor Thiago Farina. Update GetDownloadDirectory to take FilePath instead of wstring to avoid conversions "To and From wstring". BUG=None TEST=run ui_tests.exe Review URL: http://codereview.chromium.org/243047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27653 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/download/download_uitest.cc | 2 +- chrome/browser/download/save_page_uitest.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/download') diff --git a/chrome/browser/download/download_uitest.cc b/chrome/browser/download/download_uitest.cc index 3c134fd..7bd547d 100644 --- a/chrome/browser/download/download_uitest.cc +++ b/chrome/browser/download/download_uitest.cc @@ -88,7 +88,7 @@ class DownloadTest : public UITest { virtual void SetUp() { UITest::SetUp(); - download_prefix_ = FilePath::FromWStringHack(GetDownloadDirectory()); + download_prefix_ = GetDownloadDirectory(); } protected: diff --git a/chrome/browser/download/save_page_uitest.cc b/chrome/browser/download/save_page_uitest.cc index cf21ca3..1149397 100644 --- a/chrome/browser/download/save_page_uitest.cc +++ b/chrome/browser/download/save_page_uitest.cc @@ -46,7 +46,7 @@ class SavePageTest : public UITest { EXPECT_TRUE(file_util::CreateNewTempDirectory(FILE_PATH_LITERAL(""), &save_dir_)); - download_dir_ = FilePath::FromWStringHack(GetDownloadDirectory()); + download_dir_ = GetDownloadDirectory(); } virtual void TearDown() { -- cgit v1.1