| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 30cf27cd159a480e41640dab75d21f5bbdce9a99..4da1819840987fc6c8400573c2a4d5f2578895b8 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -1574,11 +1574,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| }
|
| #endif
|
|
|
| - // Tests should be able to tune login manager before showing it.
|
| - // Thus only show login manager in normal (non-testing) mode.
|
| - if (!parameters().ui_task)
|
| - OptionallyRunChromeOSLoginManager(parsed_command_line(), profile_);
|
| -
|
| #if !defined(OS_MACOSX)
|
| // Importing other browser settings is done in a browser-like process
|
| // that exits when this task has finished.
|
| @@ -1860,6 +1855,11 @@ void ChromeBrowserMainParts::StartBrowserOrUITask() {
|
| DesktopNotificationServiceFactory::GetForProfile(profile_)->SetUIManager(
|
| g_browser_process->notification_ui_manager());
|
|
|
| + // Tests should be able to tune login manager before showing it.
|
| + // Thus only show login manager in normal (non-testing) mode.
|
| + if (!parameters().ui_task)
|
| + OptionallyRunChromeOSLoginManager(parsed_command_line(), profile_);
|
| +
|
| if (parameters().ui_task) {
|
| // We are in test mode. Run one task and enter the main message loop.
|
| #if defined(OS_MACOSX)
|
|
|