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

Unified Diff: content/plugin/plugin_channel.cc

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 | « content/plugin/plugin_channel.h ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_channel.cc
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc
index 6ec878576572fc74c87ef0f831198af3acd06c93..934c97d933ad0c0cdcb980db9ca375a327c26c24 100644
--- a/content/plugin/plugin_channel.cc
+++ b/content/plugin/plugin_channel.cc
@@ -236,15 +236,11 @@ PluginChannel::PluginChannel()
: renderer_id_(-1),
in_send_(0),
incognito_(false),
- filter_(new MessageFilter()),
- npp_(new struct _NPP) {
+ filter_(new MessageFilter()) {
set_send_unblocking_only_during_unblock_dispatch();
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
log_messages_ = command_line->HasSwitch(switches::kLogPluginMessages);
-
- // Register |npp_| as the default owner for any object we receive via IPC.
- SetDefaultNPObjectOwner(npp_.get());
}
bool PluginChannel::OnControlMessageReceived(const IPC::Message& msg) {
@@ -266,7 +262,7 @@ void PluginChannel::OnCreateInstance(const std::string& mime_type,
*instance_id = GenerateRouteID();
scoped_refptr<WebPluginDelegateStub> stub(new WebPluginDelegateStub(
mime_type, *instance_id, this));
- AddRoute(*instance_id, stub.get(), NULL);
+ AddRoute(*instance_id, stub.get());
plugin_stubs_.push_back(stub);
}
« no previous file with comments | « content/plugin/plugin_channel.h ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698