Index: chrome/browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc b/chrome/browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc |
index 4b1f1c48510f55ee02a860340fe3abe4ca59836b..97a9cc7e61c9249b479f2b0b8973d545c40144bb 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator_corrupt_profiles_browsertest_win.cc |
@@ -15,6 +15,7 @@ |
#include "base/run_loop.h" |
#include "base/strings/string_util.h" |
#include "base/test/test_file_util.h" |
+#include "base/threading/thread_restrictions.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/profiles/profile_window.h" |
@@ -273,6 +274,7 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorCorruptProfileTest, |
CloseBrowsersSynchronouslyForProfileBasePath("Profile 1"); |
CreateAndSwitchToProfile("Profile 2"); |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ASSERT_TRUE(base::CreateDirectory(ProfileManager::GetGuestProfilePath())); |
ASSERT_TRUE(base::CreateDirectory(ProfileManager::GetSystemProfilePath())); |
} |
@@ -302,6 +304,7 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorCorruptProfileTest, |
// Create the guest profile path, but not the system profile one. This will |
// make it impossible to create the system profile once the permissions are |
// locked down during setup. |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ASSERT_TRUE(base::CreateDirectory(ProfileManager::GetGuestProfilePath())); |
} |
@@ -402,6 +405,7 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorCorruptProfileTest, |
// manager instead. |
IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorCorruptProfileTest, |
PRE_DeletedProfileFallbackToUserManager) { |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ASSERT_TRUE(base::CreateDirectory(ProfileManager::GetGuestProfilePath())); |
ASSERT_TRUE(base::CreateDirectory(ProfileManager::GetSystemProfilePath())); |
} |