Index: chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
index f790b2605b93a868944988cde95bd6400e6d483c..73f35b4c21fe51e90a7363b6a92e0c0137a3c1d7 100644 |
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
@@ -132,17 +132,19 @@ IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, NoGalleries) { |
IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, |
MediaGalleriesRead) { |
EnsureMediaDirectoriesExists media_directories; |
- ASSERT_TRUE(RunPlatformAppTest("api_test/media_galleries/read_access")) |
- << message_; |
+ ASSERT_TRUE(RunPlatformAppTestReturnImmediately( |
+ "api_test/media_galleries/read_access")) << message_; |
RunSecondTestPhase(media_directories.num_galleries()); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, |
MediaGalleriesNoAccess) { |
EnsureMediaDirectoriesExists media_directories; |
- ASSERT_TRUE(RunPlatformAppTest("api_test/media_galleries/no_access")) |
- << message_; |
+ ASSERT_TRUE(RunPlatformAppTestReturnImmediately( |
+ "api_test/media_galleries/no_access")) << message_; |
RunSecondTestPhase(media_directories.num_galleries()); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(ExperimentalMediaGalleriesApiTest, |