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

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

Issue 143873012: Add local state flag to force online login for a user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/mock_user_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual const User* FindUser(const std::string& email) const OVERRIDE; 73 virtual const User* FindUser(const std::string& email) const OVERRIDE;
74 virtual User* FindUserAndModify(const std::string& email) OVERRIDE; 74 virtual User* FindUserAndModify(const std::string& email) OVERRIDE;
75 virtual const User* GetLoggedInUser() const OVERRIDE; 75 virtual const User* GetLoggedInUser() const OVERRIDE;
76 virtual User* GetLoggedInUser() OVERRIDE; 76 virtual User* GetLoggedInUser() OVERRIDE;
77 virtual const User* GetPrimaryUser() const OVERRIDE; 77 virtual const User* GetPrimaryUser() const OVERRIDE;
78 virtual Profile* GetProfileByUser(const User* profile) const OVERRIDE; 78 virtual Profile* GetProfileByUser(const User* profile) const OVERRIDE;
79 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; 79 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE;
80 virtual void SaveUserOAuthStatus( 80 virtual void SaveUserOAuthStatus(
81 const std::string& username, 81 const std::string& username,
82 User::OAuthTokenStatus oauth_token_status) OVERRIDE {} 82 User::OAuthTokenStatus oauth_token_status) OVERRIDE {}
83 virtual void SaveForceOnlineSignin(const std::string& user_id,
84 bool force_online_signin) OVERRIDE {}
83 virtual base::string16 GetUserDisplayName( 85 virtual base::string16 GetUserDisplayName(
84 const std::string& username) const OVERRIDE; 86 const std::string& username) const OVERRIDE;
85 virtual void SaveUserDisplayEmail(const std::string& username, 87 virtual void SaveUserDisplayEmail(const std::string& username,
86 const std::string& display_email) OVERRIDE {} 88 const std::string& display_email) OVERRIDE {}
87 virtual std::string GetUserDisplayEmail( 89 virtual std::string GetUserDisplayEmail(
88 const std::string& username) const OVERRIDE; 90 const std::string& username) const OVERRIDE;
89 virtual bool IsCurrentUserOwner() const OVERRIDE; 91 virtual bool IsCurrentUserOwner() const OVERRIDE;
90 virtual bool IsCurrentUserNew() const OVERRIDE; 92 virtual bool IsCurrentUserNew() const OVERRIDE;
91 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE; 93 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE;
92 virtual bool CanCurrentUserLock() const OVERRIDE; 94 virtual bool CanCurrentUserLock() const OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // If set this is the active user. If empty, the first created user is the 148 // If set this is the active user. If empty, the first created user is the
147 // active user. 149 // active user.
148 std::string active_user_id_; 150 std::string active_user_id_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 152 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
151 }; 153 };
152 154
153 } // namespace chromeos 155 } // namespace chromeos
154 156
155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_ 157 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/mock_user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698