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

Unified Diff: components/user_manager/user.cc

Issue 575653002: Revert of ash: Add checks for supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/user_manager/user.h ('k') | components/user_manager/user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user.cc
diff --git a/components/user_manager/user.cc b/components/user_manager/user.cc
index 6784940a0d8ac9b4b660e9836a46922ec9f60f11..575d07f589c7f4e84742d3660e3c3c58914f4117 100644
--- a/components/user_manager/user.cc
+++ b/components/user_manager/user.cc
@@ -28,14 +28,6 @@
} // namespace
-bool User::IsSupervised() const {
- return false;
-}
-
-void User::SetIsSupervised(bool is_supervised) {
- VLOG(1) << "Ignoring SetIsSupervised call with param " << is_supervised;
-}
-
class RegularUser : public User {
public:
explicit RegularUser(const std::string& email);
@@ -44,17 +36,8 @@
// Overridden from User:
virtual UserType GetType() const OVERRIDE;
virtual bool CanSyncImage() const OVERRIDE;
- virtual void SetIsSupervised(bool is_supervised) OVERRIDE {
- VLOG(1) << "Setting user is supervised to " << is_supervised;
- is_supervised_ = is_supervised;
- }
- virtual bool IsSupervised() const OVERRIDE {
- return is_supervised_;
- }
-
- private:
- bool is_supervised_;
-
+
+ private:
DISALLOW_COPY_AND_ASSIGN(RegularUser);
};
@@ -89,7 +72,6 @@
// Overridden from User:
virtual UserType GetType() const OVERRIDE;
- virtual bool IsSupervised() const OVERRIDE;
virtual std::string display_email() const OVERRIDE;
private:
@@ -294,10 +276,6 @@
std::string SupervisedUser::display_email() const {
return base::UTF16ToUTF8(display_name());
-}
-
-bool SupervisedUser::IsSupervised() const {
- return true;
}
RetailModeUser::RetailModeUser() : User(chromeos::login::kRetailModeUserName) {
« no previous file with comments | « components/user_manager/user.h ('k') | components/user_manager/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698