Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc

Issue 552153002: Adds AppListServiceImplBrowserTest.ShowLoadedProfiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140908-AppList-ALVD-SpeechUI-fromcl
Patch Set: respond to commments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698