summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 21:43:43 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 21:43:43 +0000
commite5f659d04a347c41cbd71c918ff0f24448bd0bcc (patch)
treeb15f23a8d6faa5799f4755356c2a18e04fb95da0 /webkit/port
parentd1d0da5752b1bcc1450023620ccc896f8fbfb810 (diff)
downloadchromium_src-e5f659d04a347c41cbd71c918ff0f24448bd0bcc.zip
chromium_src-e5f659d04a347c41cbd71c918ff0f24448bd0bcc.tar.gz
chromium_src-e5f659d04a347c41cbd71c918ff0f24448bd0bcc.tar.bz2
Fix test failures caused by bad temporary variable.
TBR=ph Review URL: http://codereview.chromium.org/12696 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/MIMETypeRegistry.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/webkit/port/platform/MIMETypeRegistry.cpp b/webkit/port/platform/MIMETypeRegistry.cpp
index 670b5c3..df0cd3d 100644
--- a/webkit/port/platform/MIMETypeRegistry.cpp
+++ b/webkit/port/platform/MIMETypeRegistry.cpp
@@ -84,9 +84,8 @@ bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeTyp
bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
{
- const char* data = mimeType.latin1().data();
return !mimeType.isEmpty()
- && ChromiumBridge::isSupportedJavascriptMIMEType(data);
+ && ChromiumBridge::isSupportedJavascriptMIMEType(mimeType.latin1().data());
}
bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)