Commit abae46b4 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

Migrate MessageLoopIO to SingleThreadTaskExecutor

MessageLoop is going away soon.

Bug: 891670
Change-Id: Id1ef32b04e087514454f3d76b5aeff7ff0d51f8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876391
Commit-Queue: Carlos Caballero <carlscab@google.com>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708985}
parent 120f9c12
...@@ -14,9 +14,11 @@ ...@@ -14,9 +14,11 @@
#include "base/fuchsia/file_utils.h" #include "base/fuchsia/file_utils.h"
#include "base/fuchsia/fuchsia_logging.h" #include "base/fuchsia/fuchsia_logging.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/message_loop/message_loop.h" #include "base/message_loop/message_pump_type.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_executor.h"
#include "fuchsia/base/init_logging.h" #include "fuchsia/base/init_logging.h"
#include "url/gurl.h" #include "url/gurl.h"
...@@ -30,8 +32,7 @@ void PrintUsage() { ...@@ -30,8 +32,7 @@ void PrintUsage() {
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
// Set up a MessageLoop for async task execution. base::SingleThreadTaskExecutor executor(base::MessagePumpType::IO);
base::MessageLoopForIO message_loop;
// Parse the command line arguments and set up logging. // Parse the command line arguments and set up logging.
CHECK(base::CommandLine::Init(argc, argv)); CHECK(base::CommandLine::Init(argc, argv));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment