OLD | NEW |
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 #include "chrome/browser/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 ::switches::kRendererStartupDialog, | 749 ::switches::kRendererStartupDialog, |
750 ::switches::kFlingTapSuppressMaxDown, | 750 ::switches::kFlingTapSuppressMaxDown, |
751 ::switches::kFlingTapSuppressMaxGap, | 751 ::switches::kFlingTapSuppressMaxGap, |
752 ::switches::kTouchDevices, | 752 ::switches::kTouchDevices, |
753 ::switches::kTouchOptimizedUI, | 753 ::switches::kTouchOptimizedUI, |
754 ::switches::kNewCheckboxStyle, | 754 ::switches::kNewCheckboxStyle, |
755 ash::switches::kAshTouchHud, | 755 ash::switches::kAshTouchHud, |
756 ash::switches::kAshWindowAnimationsDisabled, | 756 ash::switches::kAshWindowAnimationsDisabled, |
757 ash::switches::kAuraLegacyPowerButton, | 757 ash::switches::kAuraLegacyPowerButton, |
758 ash::switches::kAuraNoShadows, | 758 ash::switches::kAuraNoShadows, |
759 ash::switches::kAuraPanelManager, | |
760 ash::switches::kAshNotifyDisabled, | 759 ash::switches::kAshNotifyDisabled, |
761 ::switches::kUIEnablePartialSwap, | 760 ::switches::kUIEnablePartialSwap, |
762 ::switches::kUIPrioritizeInGpuProcess, | 761 ::switches::kUIPrioritizeInGpuProcess, |
763 #if defined(USE_CRAS) | 762 #if defined(USE_CRAS) |
764 ::switches::kUseCras, | 763 ::switches::kUseCras, |
765 #endif | 764 #endif |
766 ::switches::kUseGL, | 765 ::switches::kUseGL, |
767 ::switches::kUserDataDir, | 766 ::switches::kUserDataDir, |
768 chromeos::switches::kDbusStub, | 767 chromeos::switches::kDbusStub, |
769 }; | 768 }; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1120 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1122 CrosSettings* cros_settings = CrosSettings::Get(); | 1121 CrosSettings* cros_settings = CrosSettings::Get(); |
1123 bool allow_new_user = false; | 1122 bool allow_new_user = false; |
1124 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1123 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1125 if (allow_new_user) | 1124 if (allow_new_user) |
1126 return true; | 1125 return true; |
1127 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1126 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1128 } | 1127 } |
1129 | 1128 |
1130 } // namespace chromeos | 1129 } // namespace chromeos |
OLD | NEW |