| Index: chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc
|
| diff --git a/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc b/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc
|
| index cf2554982dde13168eb27c6afab1d8a3b5e3227f..2c306acae962472fd128cad7298f39c7ef960640 100644
|
| --- a/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc
|
| +++ b/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/command_line.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ptr_util.h"
|
| +#include "base/threading/thread_restrictions.h"
|
| #include "base/win/windows_version.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/lifetime/keep_alive_types.h"
|
| @@ -236,8 +237,12 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTriggeredResetTest,
|
| ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| base::FilePath path =
|
| profile_manager->user_data_dir().AppendASCII("test_profile");
|
| - Profile* other_profile =
|
| - Profile::CreateProfile(path, nullptr, Profile::CREATE_MODE_SYNCHRONOUS);
|
| + Profile* other_profile = nullptr;
|
| + {
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| + other_profile =
|
| + Profile::CreateProfile(path, nullptr, Profile::CREATE_MODE_SYNCHRONOUS);
|
| + }
|
| profile_manager->RegisterTestingProfile(other_profile, true, false);
|
|
|
| // Use a couple same-site HTTP URLs.
|
|
|