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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 542623002: Minimal support for OOBE/login for chrome-athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments resolved 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/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..2684220bf2d20ebbf7d0d029602022587f582a49 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() ?
@@ -298,6 +308,7 @@ void LoginUtilsImpl::DoBrowserLaunchInternal(Profile* profile,
// Triggers app launcher start page service to load start page web contents.
app_list::StartPageService::Get(profile);
+#endif
// Mark login host for deletion after browser starts. This
// guarantees that the message loop will be referenced by the

Powered by Google App Engine
This is Rietveld 408576698