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

Unified Diff: components/audio_modem/audio_player_unittest.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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 | « no previous file | components/autofill/content/browser/wallet/real_pan_wallet_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_player_unittest.cc
diff --git a/components/audio_modem/audio_player_unittest.cc b/components/audio_modem/audio_player_unittest.cc
index 3e19c0635e6c0ee234f4c5d14af276a2506292a6..5d43d0156bbdd3ffda03fc21e898e39a6aabb303 100644
--- a/components/audio_modem/audio_player_unittest.cc
+++ b/components/audio_modem/audio_player_unittest.cc
@@ -5,7 +5,9 @@
#include "components/audio_modem/audio_player.h"
#include "base/bind.h"
+#include "base/location.h"
#include "base/memory/weak_ptr.h"
+#include "base/single_thread_task_runner.h"
#include "components/audio_modem/audio_player_impl.h"
#include "components/audio_modem/public/audio_modem_types.h"
#include "components/audio_modem/test/random_samples.h"
@@ -52,7 +54,7 @@ class TestAudioOutputStream : public media::AudioOutputStream {
frames = callback_->OnMoreData(dest.get(), 0);
total_frames += frames;
// Send the samples given to us by the player to the gather callback.
- caller_loop_->PostTask(
+ caller_loop_->task_runner()->PostTask(
FROM_HERE, base::Bind(gather_callback_, base::Passed(&dest), frames));
} while (frames && total_frames < max_frame_count_);
}
« no previous file with comments | « no previous file | components/autofill/content/browser/wallet/real_pan_wallet_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698