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

Unified Diff: Source/testing/runner/WebTestProxy.cpp

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests, make plugin creation synchronous. Created 7 years 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
Index: Source/testing/runner/WebTestProxy.cpp
diff --git a/Source/testing/runner/WebTestProxy.cpp b/Source/testing/runner/WebTestProxy.cpp
index a5a9bede61b6bda69611d7ba3c7f4a1c74ecec51..2c9134a098b5c61bc50d1f06dfb085142d3ad122 100644
--- a/Source/testing/runner/WebTestProxy.cpp
+++ b/Source/testing/runner/WebTestProxy.cpp
@@ -923,7 +923,7 @@ bool WebTestProxyBase::createView(WebFrame*, const WebURLRequest& request, const
WebPlugin* WebTestProxyBase::createPlugin(WebFrame* frame, const WebPluginParams& params)
{
- if (params.mimeType == TestPlugin::mimeType())
+ if (params.mimeType.utf8().find(TestPlugin::mimeType().utf8(), 0) != std::string::npos)
return TestPlugin::create(frame, params, m_delegate);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698