summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_fixer_upper_unittest.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 18:43:35 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 18:43:35 +0000
commit7ff3f63b8c66408a382adc88458a6e70038cad8d (patch)
tree19ee652ca357c782b5feb0e6bdbf938b0382a092 /chrome/browser/net/url_fixer_upper_unittest.cc
parent40dddd98e0001614e641052fc5bc9a0c68dfc129 (diff)
downloadchromium_src-7ff3f63b8c66408a382adc88458a6e70038cad8d.zip
chromium_src-7ff3f63b8c66408a382adc88458a6e70038cad8d.tar.gz
chromium_src-7ff3f63b8c66408a382adc88458a6e70038cad8d.tar.bz2
Remove the unnecessary conversion to wstring when calling file_util::WriteFile.
Also use FilePath in npapi_test_helper. BUG=24672 TEST=compiled Review URL: http://codereview.chromium.org/266061 Patch from Thiago Farina <tfarina@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_fixer_upper_unittest.cc')
-rw-r--r--chrome/browser/net/url_fixer_upper_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/net/url_fixer_upper_unittest.cc b/chrome/browser/net/url_fixer_upper_unittest.cc
index 05ff728..61ba171 100644
--- a/chrome/browser/net/url_fixer_upper_unittest.cc
+++ b/chrome/browser/net/url_fixer_upper_unittest.cc
@@ -180,7 +180,7 @@ static bool MakeTempFile(const FilePath& dir,
const FilePath& file_name,
FilePath* full_path) {
*full_path = dir.Append(file_name);
- return file_util::WriteFile(full_path->ToWStringHack(), NULL, 0) == 0;
+ return file_util::WriteFile(*full_path, "", 0) == 0;
}
// Returns true if the given URL is a file: URL that matches the given file