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

Unified Diff: content/utility/utility_thread_impl.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/utility/utility_thread_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_thread_impl.cc
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index 16d90261dee9bd55a2f7bad9955c1c999180ec04..edbf498303a7345672cd8543c1955b87e8d611a6 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -108,9 +108,6 @@ bool UtilityThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(UtilityThreadImpl, msg)
IPC_MESSAGE_HANDLER(UtilityMsg_BatchMode_Started, OnBatchModeStarted)
IPC_MESSAGE_HANDLER(UtilityMsg_BatchMode_Finished, OnBatchModeFinished)
-#if defined(OS_POSIX) && defined(ENABLE_PLUGINS)
- IPC_MESSAGE_HANDLER(UtilityMsg_LoadPlugins, OnLoadPlugins)
-#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -125,28 +122,6 @@ void UtilityThreadImpl::OnBatchModeFinished() {
ReleaseProcessIfNeeded();
}
-#if defined(OS_POSIX) && defined(ENABLE_PLUGINS)
-void UtilityThreadImpl::OnLoadPlugins(
- const std::vector<base::FilePath>& plugin_paths) {
- PluginList* plugin_list = PluginList::Singleton();
-
- std::vector<WebPluginInfo> plugins;
- // TODO(bauerb): If we restart loading plugins, we might mess up the logic in
- // PluginList::ShouldLoadPlugin due to missing the previously loaded plugins
- // in |plugin_groups|.
- for (size_t i = 0; i < plugin_paths.size(); ++i) {
- WebPluginInfo plugin;
- if (!plugin_list->LoadPluginIntoPluginList(
- plugin_paths[i], &plugins, &plugin))
- Send(new UtilityHostMsg_LoadPluginFailed(i, plugin_paths[i]));
- else
- Send(new UtilityHostMsg_LoadedPlugin(i, plugin));
- }
-
- ReleaseProcessIfNeeded();
-}
-#endif
-
void UtilityThreadImpl::BindProcessControlRequest(
mojo::InterfaceRequest<mojom::ProcessControl> request) {
DCHECK(process_control_);
« no previous file with comments | « content/utility/utility_thread_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698