| 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 ::switches::kRendererStartupDialog, | 776 ::switches::kRendererStartupDialog, |
| 777 #if defined(USE_XI2_MT) | 777 #if defined(USE_XI2_MT) |
| 778 ::switches::kTouchCalibration, | 778 ::switches::kTouchCalibration, |
| 779 #endif | 779 #endif |
| 780 ::switches::kTouchDevices, | 780 ::switches::kTouchDevices, |
| 781 ::switches::kTouchEvents, | 781 ::switches::kTouchEvents, |
| 782 ::switches::kTouchOptimizedUI, | 782 ::switches::kTouchOptimizedUI, |
| 783 ::switches::kOldCheckboxStyle, | 783 ::switches::kOldCheckboxStyle, |
| 784 ::switches::kUIEnablePartialSwap, | 784 ::switches::kUIEnablePartialSwap, |
| 785 ::switches::kUIEnableThreadedCompositing, | 785 ::switches::kUIEnableThreadedCompositing, |
| 786 ::switches::kUIMaxFramesPending, |
| 786 ::switches::kUIPrioritizeInGpuProcess, | 787 ::switches::kUIPrioritizeInGpuProcess, |
| 787 #if defined(USE_CRAS) | 788 #if defined(USE_CRAS) |
| 788 ::switches::kUseCras, | 789 ::switches::kUseCras, |
| 789 #endif | 790 #endif |
| 790 ::switches::kUseGL, | 791 ::switches::kUseGL, |
| 791 ::switches::kUserDataDir, | 792 ::switches::kUserDataDir, |
| 792 ::switches::kUseExynosVda, | 793 ::switches::kUseExynosVda, |
| 793 ash::switches::kAshTouchHud, | 794 ash::switches::kAshTouchHud, |
| 794 ash::switches::kAuraLegacyPowerButton, | 795 ash::switches::kAuraLegacyPowerButton, |
| 795 ash::switches::kAuraNoShadows, | 796 ash::switches::kAuraNoShadows, |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1064 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1064 CrosSettings* cros_settings = CrosSettings::Get(); | 1065 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1065 bool allow_new_user = false; | 1066 bool allow_new_user = false; |
| 1066 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1067 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1067 if (allow_new_user) | 1068 if (allow_new_user) |
| 1068 return true; | 1069 return true; |
| 1069 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1070 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1070 } | 1071 } |
| 1071 | 1072 |
| 1072 } // namespace chromeos | 1073 } // namespace chromeos |
| OLD | NEW |