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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 ::switches::kNoSandbox, | 761 ::switches::kNoSandbox, |
762 ::switches::kPpapiFlashArgs, | 762 ::switches::kPpapiFlashArgs, |
763 ::switches::kPpapiFlashInProcess, | 763 ::switches::kPpapiFlashInProcess, |
764 ::switches::kPpapiFlashPath, | 764 ::switches::kPpapiFlashPath, |
765 ::switches::kPpapiFlashVersion, | 765 ::switches::kPpapiFlashVersion, |
766 ::switches::kRendererStartupDialog, | 766 ::switches::kRendererStartupDialog, |
767 ::switches::kFlingTapSuppressMaxDown, | 767 ::switches::kFlingTapSuppressMaxDown, |
768 ::switches::kFlingTapSuppressMaxGap, | 768 ::switches::kFlingTapSuppressMaxGap, |
769 ::switches::kTouchDevices, | 769 ::switches::kTouchDevices, |
770 ::switches::kTouchOptimizedUI, | 770 ::switches::kTouchOptimizedUI, |
771 ::switches::kOldCheckboxStyle, | 771 ::switches::kNewCheckboxStyle, |
772 ash::switches::kAshTouchHud, | 772 ash::switches::kAshTouchHud, |
773 ash::switches::kAshWindowAnimationsDisabled, | 773 ash::switches::kAshWindowAnimationsDisabled, |
774 ash::switches::kAuraLegacyPowerButton, | 774 ash::switches::kAuraLegacyPowerButton, |
775 ash::switches::kAuraNoShadows, | 775 ash::switches::kAuraNoShadows, |
776 ash::switches::kAshNotifyDisabled, | 776 ash::switches::kAshNotifyDisabled, |
777 ::switches::kUIEnablePartialSwap, | 777 ::switches::kUIEnablePartialSwap, |
778 ::switches::kUIPrioritizeInGpuProcess, | 778 ::switches::kUIPrioritizeInGpuProcess, |
779 #if defined(USE_CRAS) | 779 #if defined(USE_CRAS) |
780 ::switches::kUseCras, | 780 ::switches::kUseCras, |
781 #endif | 781 #endif |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1188 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1189 CrosSettings* cros_settings = CrosSettings::Get(); | 1189 CrosSettings* cros_settings = CrosSettings::Get(); |
1190 bool allow_new_user = false; | 1190 bool allow_new_user = false; |
1191 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1191 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1192 if (allow_new_user) | 1192 if (allow_new_user) |
1193 return true; | 1193 return true; |
1194 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1194 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1195 } | 1195 } |
1196 | 1196 |
1197 } // namespace chromeos | 1197 } // namespace chromeos |
OLD | NEW |