summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/plugins
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:11:55 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:11:55 +0000
commitc46cfe209af4051d172bfb3903b52ee0ba9d39ce (patch)
tree021d0b45c20891ed1a2a59b215cbd3ec6b0c8e2b /chrome/renderer/plugins
parent21debe13007a008a136757e48138c5c0995d17b0 (diff)
downloadchromium_src-c46cfe209af4051d172bfb3903b52ee0ba9d39ce.zip
chromium_src-c46cfe209af4051d172bfb3903b52ee0ba9d39ce.tar.gz
chromium_src-c46cfe209af4051d172bfb3903b52ee0ba9d39ce.tar.bz2
Cleanup: Use plugin constants in more places.
Review URL: https://chromiumcodereview.appspot.com/10990078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/plugins')
-rw-r--r--chrome/renderer/plugins/plugin_placeholder.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/plugins/plugin_placeholder.cc b/chrome/renderer/plugins/plugin_placeholder.cc
index ad839b6..e46e9e4 100644
--- a/chrome/renderer/plugins/plugin_placeholder.cc
+++ b/chrome/renderer/plugins/plugin_placeholder.cc
@@ -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 @@ bool PluginPlaceholder::IsYouTubeURL(const GURL& url,
EndsWith(host, "youtube-nocookie.com", true);
return is_youtube && IsValidYouTubeVideo(url.path()) &&
- LowerCaseEqualsASCII(mime_type, "application/x-shockwave-flash");
+ LowerCaseEqualsASCII(mime_type, kFlashPluginSwfMimeType);
}
#endif