| Index: chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc b/chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc
|
| index 51ca08f9336fb09333b39bb9fc982f029ac6ca72..85039dd5e120f381c3303231ed7f994253805981 100644
|
| --- a/chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc
|
| @@ -35,24 +35,7 @@ class AppListServiceInteractiveTest : public InProcessBrowserTest {
|
| AppListServiceInteractiveTest()
|
| : profile2_(NULL) {}
|
|
|
| - void InitSecondProfile() {
|
| - ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| - base::FilePath temp_profile_dir =
|
| - profile_manager->user_data_dir().AppendASCII("Profile 1");
|
| - profile_manager->CreateProfileAsync(
|
| - temp_profile_dir,
|
| - base::Bind(&AppListServiceInteractiveTest::OnProfileCreated,
|
| - this),
|
| - base::string16(), base::string16(), std::string());
|
| - content::RunMessageLoop(); // Will stop in OnProfileCreated().
|
| - }
|
| -
|
| - void OnProfileCreated(Profile* profile, Profile::CreateStatus status) {
|
| - if (status == Profile::CREATE_STATUS_INITIALIZED) {
|
| - profile2_ = profile;
|
| - base::MessageLoop::current()->Quit();
|
| - }
|
| - }
|
| + void InitSecondProfile() { profile2_ = test::CreateSecondProfileAsync(); }
|
|
|
| protected:
|
| Profile* profile2_;
|
|
|