| Index: android_webview/native/aw_web_contents_delegate.cc
|
| diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
|
| index 612ae2d404ea4d7cea1ba83f1c1774a54fb6f4ea..8026a6fcb087467fa9572ea0525f7fefd8187e84 100644
|
| --- a/android_webview/native/aw_web_contents_delegate.cc
|
| +++ b/android_webview/native/aw_web_contents_delegate.cc
|
| @@ -14,10 +14,12 @@
|
| #include "base/android/jni_string.h"
|
| #include "base/android/scoped_java_ref.h"
|
| #include "base/lazy_instance.h"
|
| +#include "base/location.h"
|
| #include "base/memory/ptr_util.h"
|
| -#include "base/message_loop/message_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/render_widget_host.h"
|
| @@ -158,7 +160,7 @@ void AwWebContentsDelegate::AddNewContents(WebContents* source,
|
| // window, so we're done with the WebContents now. We use
|
| // DeleteSoon as WebContentsImpl may call methods on |new_contents|
|
| // after this method returns.
|
| - base::MessageLoop::current()->DeleteSoon(FROM_HERE, new_contents);
|
| + base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, new_contents);
|
| }
|
|
|
| if (was_blocked) {
|
|
|