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

Unified Diff: media/cast/test/utility/standalone_cast_environment.cc

Issue 2901113003: Fix breakages while performance_browser_tests was not running on Mac. (Closed)
Patch Set: Created 3 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 | « chrome/test/perf/mach_ports_performancetest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/standalone_cast_environment.cc
diff --git a/media/cast/test/utility/standalone_cast_environment.cc b/media/cast/test/utility/standalone_cast_environment.cc
index 272f04d96a57ed0f815ad4b5477e326f7d91526e..9a2b4b23dbcf794794aa37794cb7fa69d6400844 100644
--- a/media/cast/test/utility/standalone_cast_environment.cc
+++ b/media/cast/test/utility/standalone_cast_environment.cc
@@ -6,6 +6,7 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_restrictions.h"
#include "base/time/default_tick_clock.h"
namespace media {
@@ -40,6 +41,9 @@ StandaloneCastEnvironment::~StandaloneCastEnvironment() {
void StandaloneCastEnvironment::Shutdown() {
CHECK(CalledOnValidThread());
+
+ base::ThreadRestrictions::ScopedAllowIO
+ because_i_brought_you_into_this_world_and_i_am_gonna_take_you_out;
main_thread_.Stop();
audio_thread_.Stop();
video_thread_.Stop();
« no previous file with comments | « chrome/test/perf/mach_ports_performancetest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698