Chromium Code Reviews| Index: chrome/browser/chromeos/login/login_utils.cc |
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc |
| index 8c4f23010d3249b5d018046fef3e15f8d8d7a67a..919f3c6a6d4f69b4bedd73523bdc713476176d00 100644 |
| --- a/chrome/browser/chromeos/login/login_utils.cc |
| +++ b/chrome/browser/chromeos/login/login_utils.cc |
| @@ -90,6 +90,11 @@ |
| #include "net/url_request/url_request_context_getter.h" |
| #include "url/gurl.h" |
| +#if defined(USE_ATHENA) |
| +#include "athena/extensions/public/extensions_delegate.h" |
| +#include "athena/main/public/athena_launcher.h" |
| +#endif |
| + |
| using content::BrowserThread; |
| namespace { |
| @@ -284,6 +289,11 @@ void LoginUtilsImpl::DoBrowserLaunchInternal(Profile* profile, |
| VLOG(1) << "Launching browser..."; |
| TRACE_EVENT0("login", "LaunchBrowser"); |
| + |
| +#if defined(USE_ATHENA) |
| + athena::ExtensionsDelegate::CreateExtensionsDelegateForChrome(profile); |
| + athena::StartAthenaSessionWithContext(profile); |
| +#else |
| StartupBrowserCreator browser_creator; |
| int return_code; |
| chrome::startup::IsFirstRun first_run = first_run::IsChromeFirstRun() ? |
| @@ -295,6 +305,7 @@ void LoginUtilsImpl::DoBrowserLaunchInternal(Profile* profile, |
| chrome::startup::IS_PROCESS_STARTUP, |
| first_run, |
| &return_code); |
| +#endif |
| // Triggers app launcher start page service to load start page web contents. |
| app_list::StartPageService::Get(profile); |
|
Nikita (slow)
2014/09/08 09:53:17
May be placed under #else block.
Dmitry Polukhin
2014/09/08 13:28:19
Done.
|