Index: chrome/browser/ui/startup/startup_browser_creator.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
index 11e51f87a412c529176e3afbb26c78733ad20f43..7a7f01df7f84ab6cd66fc254ef2932ba77dd83f9 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
@@ -872,10 +872,12 @@ base::FilePath GetStartupProfilePath(const base::FilePath& user_data_dir, |
command_line.GetSwitchValuePath(switches::kProfileDirectory)); |
} |
+#if defined(ENABLE_APP_LIST) |
// If we are showing the app list then chrome isn't shown so load the app |
// list's profile rather than chrome's. |
if (command_line.HasSwitch(switches::kShowAppList)) |
return AppListService::Get()->GetProfilePath(user_data_dir); |
+#endif |
return g_browser_process->profile_manager()->GetLastUsedProfileDir( |
user_data_dir); |