Index: chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc |
diff --git a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc b/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc |
index 39d98cc18dc2f340623e3740c4bb4f8e0e84f4ec..c8db1f8665e3f17998574cd71d3859d3c2cc8d96 100644 |
--- a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc |
+++ b/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc |
@@ -38,6 +38,12 @@ class DesktopMediaListAshTest : public ash::test::AshTestBase { |
DesktopMediaListAshTest() {} |
~DesktopMediaListAshTest() override {} |
+ void TearDown() override { |
+ // Reset the unique_ptr so the list stops refreshing. |
+ list_.reset(); |
+ ash::test::AshTestBase::TearDown(); |
+ } |
+ |
void CreateList(int source_types) { |
list_.reset(new DesktopMediaListAsh(source_types)); |
list_->SetThumbnailSize(gfx::Size(kThumbnailSize, kThumbnailSize)); |