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

Unified Diff: chrome/utility/image_writer/disk_unmounter_mac.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « chrome/test/base/testing_profile.cc ('k') | chrome/utility/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_writer/disk_unmounter_mac.cc
diff --git a/chrome/utility/image_writer/disk_unmounter_mac.cc b/chrome/utility/image_writer/disk_unmounter_mac.cc
index 3f6a41a27ff40be8386e2a3bd6baab027381d0ac..317e3d6240fe6c8c8cdf419d73bb8f58fa8c1a7e 100644
--- a/chrome/utility/image_writer/disk_unmounter_mac.cc
+++ b/chrome/utility/image_writer/disk_unmounter_mac.cc
@@ -4,11 +4,12 @@
#include "chrome/utility/image_writer/disk_unmounter_mac.h"
-#include <sys/socket.h>
#include <IOKit/storage/IOStorageProtocolCharacteristics.h>
+#include <sys/socket.h>
#include "base/message_loop/message_pump_mac.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/utility/image_writer/error_messages.h"
#include "chrome/utility/image_writer/image_writer.h"
@@ -36,11 +37,9 @@ void DiskUnmounterMac::Unmount(const std::string& device_path,
success_continuation_ = success_continuation;
failure_continuation_ = failure_continuation;
- cf_thread_.message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&DiskUnmounterMac::UnmountOnWorker,
- base::Unretained(this),
- device_path));
+ cf_thread_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&DiskUnmounterMac::UnmountOnWorker,
+ base::Unretained(this), device_path));
}
// static
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chrome/utility/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698