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

Unified Diff: components/user_manager/user.cc

Issue 2642783002: Set that Active Directory users can't sync images (Closed)
Patch Set: comment Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | no next file » | 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 19fe85c87a3e8c7a2e10b6852a9b40a0c3fb3f2e..11aba12cb852fa6da0b60535b4cf7726996f9fb3 100644
--- a/components/user_manager/user.cc
+++ b/components/user_manager/user.cc
@@ -59,6 +59,7 @@ class ActiveDirectoryUser : public RegularUser {
~ActiveDirectoryUser() override;
// Overridden from User:
UserType GetType() const override;
+ bool CanSyncImage() const override;
};
class GuestUser : public User {
@@ -289,6 +290,10 @@ UserType ActiveDirectoryUser::GetType() const {
return user_manager::USER_TYPE_ACTIVE_DIRECTORY;
}
+bool ActiveDirectoryUser::CanSyncImage() const {
+ return false;
+}
+
RegularUser::RegularUser(const AccountId& account_id) : User(account_id) {
set_can_lock(true);
set_display_email(account_id.GetUserEmail());
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698