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

Unified Diff: chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc

Issue 2444383008: session_manager: Create ChromeSessionManager early (Closed)
Patch Set: for #4 Created 4 years, 2 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/session/stub_login_session_manager_delegate.cc
diff --git a/chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc b/chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc
deleted file mode 100644
index ca8013886b55a5fee5bea7d76b68c09363bd43e8..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/signin/signin_manager_factory.h"
-#include "chrome/common/pref_names.h"
-#include "components/prefs/pref_service.h"
-#include "components/signin/core/browser/signin_manager.h"
-
-namespace chromeos {
-
-StubLoginSessionManagerDelegate::StubLoginSessionManagerDelegate(
- Profile* profile,
- const std::string& login_user_id)
- : RestoreAfterCrashSessionManagerDelegate(profile, login_user_id) {
-}
-
-StubLoginSessionManagerDelegate::~StubLoginSessionManagerDelegate() {
-}
-
-void StubLoginSessionManagerDelegate::Start() {
- session_manager_->SetSessionState(session_manager::SessionState::ACTIVE);
-
- // For dev machines and stub user emulate as if sync has been initialized.
- SigninManagerFactory::GetForProfile(profile())
- ->SetAuthenticatedAccountInfo(login_user_id(), login_user_id());
- RestoreAfterCrashSessionManagerDelegate::Start();
-}
-
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698