summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_gtk.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 /webkit/tools/test_shell/test_shell_gtk.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 'webkit/tools/test_shell/test_shell_gtk.cc')
-rw-r--r--webkit/tools/test_shell/test_shell_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index 16661d8..4b74300 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -189,7 +189,7 @@ void TestShell::InitializeTestShell(bool layout_test_mode) {
if (!file_util::CreateTemporaryFile(&fontconfig_path)) {
LOG(FATAL) << "failed to create temp font config file";
}
- if (-1 == file_util::WriteFile(fontconfig_path.ToWStringHack(),
+ if (-1 == file_util::WriteFile(fontconfig_path,
font_config_xml.data(),
font_config_xml.length())) {
LOG(FATAL) << "failed to write temp font config file";
@@ -278,7 +278,7 @@ void TestShell::InitializeTestShell(bool layout_test_mode) {
if (!file_util::CreateTemporaryFile(g_ahem_path)) {
LOG(FATAL) << "failed to create temp ahem font";
}
- if (-1 == file_util::WriteFile(g_ahem_path->ToWStringHack(), ahem_font.data(),
+ if (-1 == file_util::WriteFile(g_ahem_path, ahem_font.data(),
ahem_font.length())) {
LOG(FATAL) << "failed to write temp ahem font";
}