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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 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_STUB_LOGIN_SESSION_MANAGER_DELEGAT E_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_STUB_LOGIN_SESSION_MANAGER_DELEGAT E_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_STUB_LOGIN_SESSION_MANAGER_DELEGAT E_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_STUB_LOGIN_SESSION_MANAGER_DELEGAT E_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/login/session/restore_after_crash_session_mana ger_delegate.h" 12 #include "chrome/browser/chromeos/login/session/restore_after_crash_session_mana ger_delegate.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace user_manager {
17 class UserID;
18 }
19
16 namespace chromeos { 20 namespace chromeos {
17 21
18 class StubLoginSessionManagerDelegate 22 class StubLoginSessionManagerDelegate
19 : public RestoreAfterCrashSessionManagerDelegate { 23 : public RestoreAfterCrashSessionManagerDelegate {
20 public: 24 public:
21 StubLoginSessionManagerDelegate(Profile* profile, 25 StubLoginSessionManagerDelegate(Profile* profile,
22 const std::string& login_user_id); 26 const user_manager::UserID& login_user_id);
23 ~StubLoginSessionManagerDelegate() override; 27 ~StubLoginSessionManagerDelegate() override;
24 28
25 private: 29 private:
26 // session_manager::SessionManagerDelegate implementation: 30 // session_manager::SessionManagerDelegate implementation:
27 void Start() override; 31 void Start() override;
28 32
29 DISALLOW_COPY_AND_ASSIGN(StubLoginSessionManagerDelegate); 33 DISALLOW_COPY_AND_ASSIGN(StubLoginSessionManagerDelegate);
30 }; 34 };
31 35
32 } // namespace chromeos 36 } // namespace chromeos
33 37
34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_STUB_LOGIN_SESSION_MANAGER_DELE GATE_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_STUB_LOGIN_SESSION_MANAGER_DELE GATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698