diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 01:20:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 01:20:41 +0000 |
commit | bae0ea1f95c5c3a02761d942c0802ec877c1a106 (patch) | |
tree | 456d3b2eb7cc4fc497870385223c88312db8a914 /webkit/tools/test_shell | |
parent | 8a5deb2ef0a4cc84b06a3466b32e94375110106c (diff) | |
download | chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.zip chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.tar.gz chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.tar.bz2 |
Change mime type utils to operate on platform-specific string types for filenames/file extensions.
Review URL: http://codereview.chromium.org/21327
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rwxr-xr-x | webkit/tools/test_shell/test_shell.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index aa9dca7..f40dcbd 100755 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -559,17 +559,18 @@ void AppendToLog(const char* file, int line, const char* msg) { logging::LogMessage(file, line).stream() << msg; } -bool GetMimeTypeFromExtension(const std::wstring &ext, std::string *mime_type) { +bool GetMimeTypeFromExtension(const FilePath::StringType& ext, + std::string *mime_type) { return net::GetMimeTypeFromExtension(ext, mime_type); } -bool GetMimeTypeFromFile(const std::wstring &file_path, +bool GetMimeTypeFromFile(const FilePath& file_path, std::string *mime_type) { return net::GetMimeTypeFromFile(file_path, mime_type); } bool GetPreferredExtensionForMimeType(const std::string& mime_type, - std::wstring* ext) { + FilePath::StringType* ext) { return net::GetPreferredExtensionForMimeType(mime_type, ext); } |