Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Unified Diff: webkit/port/bridge/chromium/PluginsChromium.cpp

Issue 8131: More stubbing out. With this and the rest of Linux pending, test_shell links. (Closed)
Patch Set: It links Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/port/platform/chromium/EditorLinux.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bridge/chromium/PluginsChromium.cpp
diff --git a/webkit/port/bridge/chromium/PluginsChromium.cpp b/webkit/port/bridge/chromium/PluginsChromium.cpp
index eb6188d201f36cfb9d25dc70f6297f9105fcb13d..d337bf6aa54ce96b81834e063a206062b23533f5 100644
--- a/webkit/port/bridge/chromium/PluginsChromium.cpp
+++ b/webkit/port/bridge/chromium/PluginsChromium.cpp
@@ -144,11 +144,14 @@ String GetPluginMimeTypeFromExtension(const String& extension) {
std::string mime_type;
std::string extension_std = WideToUTF8(
webkit_glue::StringToStdWString(extension));
+#if !defined(__linux__)
+ // TODO(port): unstub once we have plugin support for Linux
for (size_t i = 0; i < g_plugins.size(); ++i) {
if (NPAPI::PluginList::SupportsExtension(
g_plugins[i], extension_std, &mime_type))
break;
}
+#endif
return webkit_glue::StdStringToString(mime_type);
}
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/port/platform/chromium/EditorLinux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698