diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:43:35 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:43:35 +0000 |
commit | 7ff3f63b8c66408a382adc88458a6e70038cad8d (patch) | |
tree | 19ee652ca357c782b5feb0e6bdbf938b0382a092 /net/tools | |
parent | 40dddd98e0001614e641052fc5bc9a0c68dfc129 (diff) | |
download | chromium_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 'net/tools')
-rw-r--r-- | net/tools/tld_cleanup/tld_cleanup.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc index d915c4d..71c16c0 100644 --- a/net/tools/tld_cleanup/tld_cleanup.cc +++ b/net/tools/tld_cleanup/tld_cleanup.cc @@ -58,8 +58,7 @@ bool WriteRules(const StringSet& rules, FilePath outfile) { data.append(";\n"); - int written = file_util::WriteFile(outfile.ToWStringHack(), data.data(), - data.size()); + int written = file_util::WriteFile(outfile, data.data(), data.size()); return written == static_cast<int>(data.size()); } |