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

Unified Diff: chrome/renderer/plugins/plugin_placeholder.cc

Issue 10990078: Cleanup: Use plugin constants in more places. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 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 | « chrome/browser/ui/webui/version_handler.cc ('k') | content/browser/plugin_data_remover_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/plugin_placeholder.cc
===================================================================
--- chrome/renderer/plugins/plugin_placeholder.cc (revision 159101)
+++ chrome/renderer/plugins/plugin_placeholder.cc (working copy)
@@ -44,6 +44,10 @@
#include "webkit/plugins/npapi/plugin_list.h"
#include "webkit/plugins/webview_plugin.h"
+#if defined(ENABLE_MOBILE_YOUTUBE_PLUGIN)
+#include "webkit/plugins/plugin_constants.h"
+#endif
+
using content::RenderThread;
using content::RenderView;
using WebKit::WebContextMenuData;
@@ -630,6 +634,6 @@
EndsWith(host, "youtube-nocookie.com", true);
return is_youtube && IsValidYouTubeVideo(url.path()) &&
- LowerCaseEqualsASCII(mime_type, "application/x-shockwave-flash");
+ LowerCaseEqualsASCII(mime_type, kFlashPluginSwfMimeType);
}
#endif
« no previous file with comments | « chrome/browser/ui/webui/version_handler.cc ('k') | content/browser/plugin_data_remover_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698