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. |