| Index: components/plugins/renderer/webview_plugin.cc
|
| diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
|
| index 968ed150b44deff6e63b364327ce8b52663b2cd6..e60501a1abdee6f15576ae23113cf4330ff46379 100644
|
| --- a/components/plugins/renderer/webview_plugin.cc
|
| +++ b/components/plugins/renderer/webview_plugin.cc
|
| @@ -7,9 +7,11 @@
|
| #include <stddef.h>
|
|
|
| #include "base/auto_reset.h"
|
| -#include "base/message_loop/message_loop.h"
|
| +#include "base/location.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/numerics/safe_conversions.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "content/public/common/web_preferences.h"
|
| #include "content/public/renderer/render_view.h"
|
| #include "gin/converter.h"
|
| @@ -156,7 +158,7 @@ void WebViewPlugin::destroy() {
|
| }
|
| container_ = nullptr;
|
| content::RenderViewObserver::Observe(nullptr);
|
| - base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
|
| + base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
|
| }
|
|
|
| v8::Local<v8::Object> WebViewPlugin::v8ScriptableObject(v8::Isolate* isolate) {
|
|
|