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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 ::switches::kPpapiFlashArgs, | 777 ::switches::kPpapiFlashArgs, |
778 ::switches::kPpapiFlashInProcess, | 778 ::switches::kPpapiFlashInProcess, |
779 ::switches::kPpapiFlashPath, | 779 ::switches::kPpapiFlashPath, |
780 ::switches::kPpapiFlashVersion, | 780 ::switches::kPpapiFlashVersion, |
781 ::switches::kRendererStartupDialog, | 781 ::switches::kRendererStartupDialog, |
782 ::switches::kFlingTapSuppressMaxDown, | 782 ::switches::kFlingTapSuppressMaxDown, |
783 ::switches::kFlingTapSuppressMaxGap, | 783 ::switches::kFlingTapSuppressMaxGap, |
784 ::switches::kTouchDevices, | 784 ::switches::kTouchDevices, |
785 ::switches::kTouchOptimizedUI, | 785 ::switches::kTouchOptimizedUI, |
786 ::switches::kOldCheckboxStyle, | 786 ::switches::kOldCheckboxStyle, |
| 787 ::switches::kDisablePanelFitting, |
787 ash::switches::kAshTouchHud, | 788 ash::switches::kAshTouchHud, |
788 ash::switches::kAshWindowAnimationsDisabled, | 789 ash::switches::kAshWindowAnimationsDisabled, |
789 ash::switches::kAuraLegacyPowerButton, | 790 ash::switches::kAuraLegacyPowerButton, |
790 ash::switches::kAuraNoShadows, | 791 ash::switches::kAuraNoShadows, |
791 ash::switches::kAshNotifyDisabled, | 792 ash::switches::kAshNotifyDisabled, |
792 ::switches::kUIEnablePartialSwap, | 793 ::switches::kUIEnablePartialSwap, |
793 ::switches::kUIPrioritizeInGpuProcess, | 794 ::switches::kUIPrioritizeInGpuProcess, |
794 #if defined(USE_CRAS) | 795 #if defined(USE_CRAS) |
795 ::switches::kUseCras, | 796 ::switches::kUseCras, |
796 #endif | 797 #endif |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1215 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1215 CrosSettings* cros_settings = CrosSettings::Get(); | 1216 CrosSettings* cros_settings = CrosSettings::Get(); |
1216 bool allow_new_user = false; | 1217 bool allow_new_user = false; |
1217 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1218 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1218 if (allow_new_user) | 1219 if (allow_new_user) |
1219 return true; | 1220 return true; |
1220 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1221 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1221 } | 1222 } |
1222 | 1223 |
1223 } // namespace chromeos | 1224 } // namespace chromeos |
OLD | NEW |