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

Unified Diff: content/renderer/render_process_impl.cc

Issue 111613005: Start removing support for in-process NPAPI plugins. This was a debugging mode and was only support… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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
« no previous file with comments | « content/renderer/render_process_impl.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_process_impl.cc
===================================================================
--- content/renderer/render_process_impl.cc (revision 242534)
+++ content/renderer/render_process_impl.cc (working copy)
@@ -48,7 +48,6 @@
this, &RenderProcessImpl::ClearTransportDIBCache),
transport_dib_next_sequence_number_(0),
enabled_bindings_(0) {
- in_process_plugins_ = InProcessPlugins();
for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i)
shared_mem_cache_[i] = NULL;
@@ -99,20 +98,6 @@
ClearTransportDIBCache();
}
-bool RenderProcessImpl::InProcessPlugins() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
-#if defined(OS_LINUX) || defined(OS_OPENBSD)
- // Plugin processes require a UI message loop, and the Linux message loop
- // implementation only allows one UI loop per process.
- if (command_line.HasSwitch(switches::kInProcessPlugins))
- NOTIMPLEMENTED() << ": in process plugins not supported on Linux";
- return command_line.HasSwitch(switches::kInProcessPlugins);
-#else
- return command_line.HasSwitch(switches::kInProcessPlugins) ||
- command_line.HasSwitch(switches::kSingleProcess);
-#endif
-}
-
void RenderProcessImpl::AddBindings(int bindings) {
enabled_bindings_ |= bindings;
}
@@ -196,10 +181,6 @@
FreeTransportDIB(mem);
}
-bool RenderProcessImpl::UseInProcessPlugins() const {
- return in_process_plugins_;
-}
-
bool RenderProcessImpl::GetTransportDIBFromCache(TransportDIB** mem,
size_t size) {
// look for a cached object that is suitable for the requested size.
« no previous file with comments | « content/renderer/render_process_impl.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698