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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 718673002: New user type introduced. Combines regular and supervised features. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logical expression fixed. Created 6 years, 1 month 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
Index: chrome/browser/chromeos/accessibility/accessibility_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index 620b591e416c4db937cdc9f1662a82838467c5c0..f2a95c86c7957c6416b1b55f9b251e83a42c2301 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -483,7 +483,9 @@ void AccessibilityManager::UpdateLargeCursorFromPref() {
bool AccessibilityManager::IsIncognitoAllowed() {
// Supervised users can't create incognito-mode windows.
- return !(user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser());
+ return !user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser() &&
bartfab (slow) 2014/11/27 12:51:50 Nit: It would be more elegant to do this instead:
+ !user_manager::UserManager::Get()->
+ IsLoggedInAsRegularSupervisedUser();
}
bool AccessibilityManager::IsLargeCursorEnabled() {

Powered by Google App Engine
This is Rietveld 408576698