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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2030193003: Remove use of deprecated MessageLoop methods in android_webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 1c05e59047cdd694cb565829c642eec47e1f42fe..44738a3edbbff8e4e28ff62fd1072092703f96e1 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -45,12 +45,14 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
+#include "base/location.h"
#include "base/memory/memory_pressure_listener.h"
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
#include "base/pickle.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string16.h"
#include "base/supports_user_data.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/autofill/content/browser/content_autofill_driver_factory.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
@@ -968,7 +970,8 @@ void AwContents::SetPendingWebContentsForPopup(
// TODO(benm): Support holding multiple pop up window requests.
LOG(WARNING) << "Blocking popup window creation as an outstanding "
<< "popup window is still pending.";
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, pending.release());
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE,
+ pending.release());
return;
}
pending_contents_.reset(new AwContents(std::move(pending)));
« no previous file with comments | « no previous file | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698