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

Unified Diff: chrome/utility/media_galleries/media_metadata_parser.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 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
Index: chrome/utility/media_galleries/media_metadata_parser.cc
diff --git a/chrome/utility/media_galleries/media_metadata_parser.cc b/chrome/utility/media_galleries/media_metadata_parser.cc
index dbce0091e69972c77d00def1f8d9f429feb3f971..c5da99e8f7b228a8d0749c4bea696a67ba3863f4 100644
--- a/chrome/utility/media_galleries/media_metadata_parser.cc
+++ b/chrome/utility/media_galleries/media_metadata_parser.cc
@@ -7,8 +7,8 @@
#include <string>
#include "base/bind.h"
+#include "base/location.h"
#include "base/memory/linked_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/strings/string_util.h"
#include "base/task_runner_util.h"
#include "base/threading/thread.h"
@@ -175,10 +175,9 @@ void MediaMetadataParser::Start(const MetadataCallback& callback) {
media_thread_.reset(new base::Thread("media_thread"));
CHECK(media_thread_->Start());
- media_thread_->message_loop_proxy()->PostTaskAndReply(
- FROM_HERE,
- base::Bind(&ParseAudioVideoMetadata, source_, get_attached_images_,
- metadata, attached_images),
+ media_thread_->task_runner()->PostTaskAndReply(
+ FROM_HERE, base::Bind(&ParseAudioVideoMetadata, source_,
+ get_attached_images_, metadata, attached_images),
base::Bind(&FinishParseAudioVideoMetadata, callback,
base::Owned(metadata), base::Owned(attached_images)));
return;
« no previous file with comments | « chrome/utility/local_discovery/service_discovery_message_handler.cc ('k') | chrome/utility/profile_import_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698