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

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

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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
Index: content/child/npapi/plugin_instance.cc
===================================================================
--- content/child/npapi/plugin_instance.cc (revision 222566)
+++ content/child/npapi/plugin_instance.cc (working copy)
@@ -675,13 +675,9 @@
stream_index != open_streams_.end(); ++stream_index) {
PluginStream* plugin_stream = stream_index->get();
if (plugin_stream->notify_data() == notify_data) {
- WebPluginResourceClient* resource_client =
- plugin_stream->AsResourceClient();
- webplugin_->URLRedirectResponse(allow, resource_client->ResourceId());
- if (allow) {
- plugin_stream->UpdateUrl(
- plugin_stream->pending_redirect_url().c_str());
- }
+ PluginStreamUrl* plugin_stream_url =
+ static_cast<PluginStreamUrl*>(plugin_stream);
+ plugin_stream_url->URLRedirectResponse(allow);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698