summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_loader_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/plugin_loader_posix.cc')
-rw-r--r--content/browser/plugin_loader_posix.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/content/browser/plugin_loader_posix.cc b/content/browser/plugin_loader_posix.cc
index bfc9032..b8750ed 100644
--- a/content/browser/plugin_loader_posix.cc
+++ b/content/browser/plugin_loader_posix.cc
@@ -5,10 +5,9 @@
#include "content/browser/plugin_loader_posix.h"
#include "base/bind.h"
-#include "base/location.h"
+#include "base/message_loop/message_loop.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "base/metrics/histogram.h"
-#include "base/single_thread_task_runner.h"
-#include "base/thread_task_runner_handle.h"
#include "content/browser/utility_process_host_impl.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/plugin_list.h"
@@ -30,8 +29,8 @@ void PluginLoaderPosix::GetPlugins(
std::vector<WebPluginInfo> cached_plugins;
if (PluginList::Singleton()->GetPluginsNoRefresh(&cached_plugins)) {
// Can't assume the caller is reentrant.
- base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, cached_plugins));
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, cached_plugins));
return;
}
@@ -227,7 +226,7 @@ void PluginLoaderPosix::FinishedLoadingPlugins() {
PluginList::Singleton()->SetPlugins(loaded_plugins_);
for (auto& callback : callbacks_) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, loaded_plugins_));
}
callbacks_.clear();