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

Unified Diff: content/child/npapi/webplugin_delegate_impl.cc

Issue 138003016: Merge 248007 "Expand the QuickTime quirk to handle all mime type..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/webplugin_delegate_impl.cc
===================================================================
--- content/child/npapi/webplugin_delegate_impl.cc (revision 248564)
+++ content/child/npapi/webplugin_delegate_impl.cc (working copy)
@@ -52,8 +52,10 @@
const std::vector<std::string>& arg_names,
const std::vector<std::string>& arg_values,
bool load_manually) {
- if (instance_->mime_type() == "video/quicktime")
+ if (instance_->plugin_lib()->plugin_info().name.find(
+ base::ASCIIToUTF16("QuickTime Plug-in")) != std::wstring::npos) {
quirks_ |= PLUGIN_QUIRK_COPY_STREAM_DATA;
+ }
instance_->set_web_plugin(plugin_);
if (quirks_ & PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698