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

Unified Diff: extensions/browser/serial_extension_host_queue.cc

Issue 2036863002: Remove use of deprecated MessageLoop methods in extensions. (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 | « extensions/browser/process_manager.cc ('k') | extensions/browser/state_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/serial_extension_host_queue.cc
diff --git a/extensions/browser/serial_extension_host_queue.cc b/extensions/browser/serial_extension_host_queue.cc
index c305c93240fd5b9e37b3b1bd8d488a1d12be751f..60a20440a58fa482163f1f5ba3940a5cd6c829de 100644
--- a/extensions/browser/serial_extension_host_queue.cc
+++ b/extensions/browser/serial_extension_host_queue.cc
@@ -5,8 +5,10 @@
#include "extensions/browser/serial_extension_host_queue.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "components/variations/variations_associated_data.h"
#include "extensions/browser/deferred_start_render_host.h"
@@ -61,7 +63,7 @@ void SerialExtensionHostQueue::Remove(DeferredStartRenderHost* host) {
void SerialExtensionHostQueue::PostTask() {
if (!pending_create_) {
- base::MessageLoop::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, base::Bind(&SerialExtensionHostQueue::ProcessOneHost,
ptr_factory_.GetWeakPtr()),
base::TimeDelta::FromMilliseconds(GetDelayMs()));
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | extensions/browser/state_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698