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

Side by Side Diff: chrome/browser/chromeos/login/fake_login_utils.h

Issue 651843003: [cros-login-refactor] Move CompleteOffTheRecordLogin to UserSessionManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAKE_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
7 7
8 #include "chrome/browser/chromeos/login/login_utils.h" 8 #include "chrome/browser/chromeos/login/login_utils.h"
9 #include "chromeos/login/auth/user_context.h" 9 #include "chromeos/login/auth/user_context.h"
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 FakeLoginUtils(); 22 FakeLoginUtils();
23 virtual ~FakeLoginUtils(); 23 virtual ~FakeLoginUtils();
24 virtual void DoBrowserLaunch(Profile* profile, 24 virtual void DoBrowserLaunch(Profile* profile,
25 LoginDisplayHost* login_host) override; 25 LoginDisplayHost* login_host) override;
26 virtual void PrepareProfile(const UserContext& user_context, 26 virtual void PrepareProfile(const UserContext& user_context,
27 bool has_cookies, 27 bool has_cookies,
28 bool has_active_session, 28 bool has_active_session,
29 LoginUtils::Delegate* delegate) override; 29 LoginUtils::Delegate* delegate) override;
30 virtual void DelegateDeleted(LoginUtils::Delegate* delegate) override; 30 virtual void DelegateDeleted(LoginUtils::Delegate* delegate) override;
31 virtual void CompleteOffTheRecordLogin(const GURL& start_url) override;
32 virtual scoped_refptr<Authenticator> CreateAuthenticator( 31 virtual scoped_refptr<Authenticator> CreateAuthenticator(
33 AuthStatusConsumer* consumer) override; 32 AuthStatusConsumer* consumer) override;
34 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile, 33 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
35 bool early_restart) override; 34 bool early_restart) override;
36 35
37 void SetExpectedCredentials(const UserContext& user_context); 36 void SetExpectedCredentials(const UserContext& user_context);
38 void set_should_launch_browser(bool should_launch_browser) { 37 void set_should_launch_browser(bool should_launch_browser) {
39 should_launch_browser_ = should_launch_browser; 38 should_launch_browser_ = should_launch_browser;
40 } 39 }
41 40
42 private: 41 private:
43 scoped_refptr<Authenticator> authenticator_; 42 scoped_refptr<Authenticator> authenticator_;
44 UserContext expected_user_context_; 43 UserContext expected_user_context_;
45 bool should_launch_browser_; 44 bool should_launch_browser_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils); 46 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils);
48 }; 47 };
49 48
50 } // namespace chromeos 49 } // namespace chromeos
51 50
52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698