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 d1a5e64bc2be8d09033920baf4d7c2f7ff6be9ad..3316e9dbbd3ac75e536d30a1da9d1ed53ad5f41f 100644 |
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
@@ -57,17 +57,19 @@ IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, NoGalleries) { |
IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, |
MediaGalleriesRead) { |
chrome::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) { |
chrome::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, |