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

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

Issue 1111673003: [chrome/utility] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments for the pattern Created 5 years, 8 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/utility/image_writer/disk_unmounter_mac.h ('k') | chrome/utility/media_galleries/ipc_data_source.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 730cc2332cd7af005459a22e6c89e7c081ae22ba..8d3155a2955fc3654a0ed821e96724d8eae18f0a 100644
--- a/chrome/utility/image_writer/disk_unmounter_mac.cc
+++ b/chrome/utility/image_writer/disk_unmounter_mac.cc
@@ -7,9 +7,9 @@
#include <sys/socket.h>
#include <IOKit/storage/IOStorageProtocolCharacteristics.h>
-#include "base/message_loop/message_loop_proxy.h"
#include "base/message_loop/message_pump_mac.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/utility/image_writer/error_messages.h"
#include "chrome/utility/image_writer/image_writer.h"
@@ -32,7 +32,7 @@ void DiskUnmounterMac::Unmount(const std::string& device_path,
const base::Closure& failure_continuation) {
// Should only be used once.
DCHECK(!original_thread_.get());
- original_thread_ = base::MessageLoopProxy::current();
+ original_thread_ = base::ThreadTaskRunnerHandle::Get();
success_continuation_ = success_continuation;
failure_continuation_ = failure_continuation;
« no previous file with comments | « chrome/utility/image_writer/disk_unmounter_mac.h ('k') | chrome/utility/media_galleries/ipc_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698