| Index: chrome/browser/apps/guest_view/web_view_browsertest.cc
|
| diff --git a/chrome/browser/apps/guest_view/web_view_browsertest.cc b/chrome/browser/apps/guest_view/web_view_browsertest.cc
|
| index ac627007df6ef67f9f3f210b6b4157dc757bf23d..4915460b4f5471d86cc1558ac57a27a9277d2486 100644
|
| --- a/chrome/browser/apps/guest_view/web_view_browsertest.cc
|
| +++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc
|
| @@ -19,6 +19,7 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/threading/thread_restrictions.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "build/build_config.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| @@ -2558,6 +2559,7 @@ IN_PROC_BROWSER_TEST_P(WebViewTest, DownloadPermission) {
|
| "web_view/download");
|
| ASSERT_TRUE(guest_web_contents);
|
|
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| base::ScopedTempDir temporary_download_dir;
|
| ASSERT_TRUE(temporary_download_dir.CreateUniqueTempDir());
|
| DownloadPrefs::FromBrowserContext(guest_web_contents->GetBrowserContext())
|
| @@ -2715,6 +2717,7 @@ IN_PROC_BROWSER_TEST_P(WebViewTest, DownloadCookieIsolation) {
|
| content::WebContents* web_contents = GetFirstAppWindowWebContents();
|
| ASSERT_TRUE(web_contents);
|
|
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| base::ScopedTempDir temporary_download_dir;
|
| ASSERT_TRUE(temporary_download_dir.CreateUniqueTempDir());
|
| DownloadPrefs::FromBrowserContext(web_contents->GetBrowserContext())
|
| @@ -2800,6 +2803,7 @@ IN_PROC_BROWSER_TEST_P(WebViewTest, PRE_DownloadCookieIsolation_CrossSession) {
|
| content::WebContents* web_contents = GetFirstAppWindowWebContents();
|
| ASSERT_TRUE(web_contents);
|
|
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| base::ScopedTempDir temporary_download_dir;
|
| ASSERT_TRUE(temporary_download_dir.CreateUniqueTempDir());
|
| DownloadPrefs::FromBrowserContext(web_contents->GetBrowserContext())
|
| @@ -2858,6 +2862,7 @@ IN_PROC_BROWSER_TEST_P(WebViewTest, DownloadCookieIsolation_CrossSession) {
|
| DownloadHistoryWaiter history_waiter(browser_context);
|
| history_waiter.WaitForHistoryLoad();
|
|
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| base::ScopedTempDir temporary_download_dir;
|
| ASSERT_TRUE(temporary_download_dir.Set(
|
| DownloadPrefs::FromBrowserContext(browser_context)->DownloadPath()));
|
|
|