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

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

Issue 17546004: Added policy for disabling locally managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge conflict resolved. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_USER_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE; 127 virtual UserFlow* GetCurrentUserFlow() const OVERRIDE;
128 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE; 128 virtual UserFlow* GetUserFlow(const std::string& email) const OVERRIDE;
129 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE; 129 virtual void SetUserFlow(const std::string& email, UserFlow* flow) OVERRIDE;
130 virtual void ResetUserFlow(const std::string& email) OVERRIDE; 130 virtual void ResetUserFlow(const std::string& email) OVERRIDE;
131 virtual bool GetAppModeChromeClientOAuthInfo( 131 virtual bool GetAppModeChromeClientOAuthInfo(
132 std::string* chrome_client_id, 132 std::string* chrome_client_id,
133 std::string* chrome_client_secret) OVERRIDE; 133 std::string* chrome_client_secret) OVERRIDE;
134 virtual void SetAppModeChromeClientOAuthInfo( 134 virtual void SetAppModeChromeClientOAuthInfo(
135 const std::string& chrome_client_id, 135 const std::string& chrome_client_id,
136 const std::string& chrome_client_secret) OVERRIDE; 136 const std::string& chrome_client_secret) OVERRIDE;
137 virtual bool AreLocallyManagedUsersAllowed() const OVERRIDE;
137 138
138 // content::NotificationObserver implementation. 139 // content::NotificationObserver implementation.
139 virtual void Observe(int type, 140 virtual void Observe(int type,
140 const content::NotificationSource& source, 141 const content::NotificationSource& source,
141 const content::NotificationDetails& details) OVERRIDE; 142 const content::NotificationDetails& details) OVERRIDE;
142 143
143 // ProfileSyncServiceObserver implementation. 144 // ProfileSyncServiceObserver implementation.
144 virtual void OnStateChanged() OVERRIDE; 145 virtual void OnStateChanged() OVERRIDE;
145 146
146 // policy::DeviceLocalAccountPolicyService::Observer implementation. 147 // policy::DeviceLocalAccountPolicyService::Observer implementation.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // such users by not adding them to the persistent user list, not downloading 351 // such users by not adding them to the persistent user list, not downloading
351 // their custom avatars and mounting their cryptohomes using tmpfs. Defaults 352 // their custom avatars and mounting their cryptohomes using tmpfs. Defaults
352 // to |false|. 353 // to |false|.
353 bool is_current_user_ephemeral_regular_user_; 354 bool is_current_user_ephemeral_regular_user_;
354 355
355 // Cached flag indicating whether the ephemeral user policy is enabled. 356 // Cached flag indicating whether the ephemeral user policy is enabled.
356 // Defaults to |false| if the value has not been read from trusted device 357 // Defaults to |false| if the value has not been read from trusted device
357 // policy yet. 358 // policy yet.
358 bool ephemeral_users_enabled_; 359 bool ephemeral_users_enabled_;
359 360
361 // Cached flag indicating whether the locally managed users are enabled by
362 // policy. Defaults to |false| if the value has not been read from trusted
363 // device policy yet.
364 bool locally_managed_users_enabled_by_policy_;
365
360 // Merge session state (cookie restore process state). 366 // Merge session state (cookie restore process state).
361 MergeSessionState merge_session_state_; 367 MergeSessionState merge_session_state_;
362 368
363 // Cached name of device owner. Defaults to empty string if the value has not 369 // Cached name of device owner. Defaults to empty string if the value has not
364 // been read from trusted device policy yet. 370 // been read from trusted device policy yet.
365 std::string owner_email_; 371 std::string owner_email_;
366 372
367 // Chrome oauth client id and secret - override values for kiosk mode. 373 // Chrome oauth client id and secret - override values for kiosk mode.
368 std::string chrome_client_id_; 374 std::string chrome_client_id_;
369 std::string chrome_client_secret_; 375 std::string chrome_client_secret_;
(...skipping 28 matching lines...) Expand all
398 // User sessions that have to be restored after browser crash. 404 // User sessions that have to be restored after browser crash.
399 // [user_id] > [user_id_hash] 405 // [user_id] > [user_id_hash]
400 SessionManagerClient::ActiveSessionsMap pending_user_sessions_; 406 SessionManagerClient::ActiveSessionsMap pending_user_sessions_;
401 407
402 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 408 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
403 }; 409 };
404 410
405 } // namespace chromeos 411 } // namespace chromeos
406 412
407 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 413 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698