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

Side by Side Diff: chrome/browser/chromeos/login/session/restore_after_crash_session_initializer.h

Issue 2444383008: session_manager: Create ChromeSessionManager early (Closed)
Patch Set: fix compile, StubLoginSessionInitializer -> StubSessionInitializer Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MANAGE R_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_INITIA LIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MANAGE R_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_INITIA LIZER_H_
7 7
8 #include <memory>
9 #include <string> 8 #include <string>
10 9
11 #include "base/macros.h" 10 #include "base/macros.h"
12 #include "components/session_manager/core/session_manager.h"
13 11
14 class Profile; 12 class Profile;
15 13
16 namespace chromeos { 14 namespace chromeos {
17 15
18 class RestoreAfterCrashSessionManagerDelegate 16 class RestoreAfterCrashSessionInitializer {
19 : public session_manager::SessionManagerDelegate {
20 public: 17 public:
21 RestoreAfterCrashSessionManagerDelegate(Profile* profile, 18 RestoreAfterCrashSessionInitializer(Profile* profile,
22 const std::string& login_user_id); 19 const std::string& login_user_id);
23 ~RestoreAfterCrashSessionManagerDelegate() override; 20 virtual ~RestoreAfterCrashSessionInitializer();
21
22 virtual void Start();
24 23
25 protected: 24 protected:
26 // session_manager::SessionManagerDelegate implementation:
27 void Start() override;
28
29 Profile* profile() { return profile_; } 25 Profile* profile() { return profile_; }
30 const std::string& login_user_id() const { return login_user_id_; } 26 const std::string& login_user_id() const { return login_user_id_; }
31 27
32 private: 28 private:
33 Profile* profile_; 29 Profile* const profile_;
34 const std::string login_user_id_; 30 const std::string login_user_id_;
35 31
36 DISALLOW_COPY_AND_ASSIGN(RestoreAfterCrashSessionManagerDelegate); 32 DISALLOW_COPY_AND_ASSIGN(RestoreAfterCrashSessionInitializer);
37 }; 33 };
38 34
39 } // namespace chromeos 35 } // namespace chromeos
40 36
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MAN AGER_DELEGATE_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_INI TIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698