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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 ::switches::kHasChromeOSKeyboard, | 810 ::switches::kHasChromeOSKeyboard, |
811 ::switches::kLoginProfile, | 811 ::switches::kLoginProfile, |
812 ::switches::kNaturalScrollDefault, | 812 ::switches::kNaturalScrollDefault, |
813 ::switches::kNoSandbox, | 813 ::switches::kNoSandbox, |
814 ::switches::kPpapiFlashArgs, | 814 ::switches::kPpapiFlashArgs, |
815 ::switches::kPpapiFlashInProcess, | 815 ::switches::kPpapiFlashInProcess, |
816 ::switches::kPpapiFlashPath, | 816 ::switches::kPpapiFlashPath, |
817 ::switches::kPpapiFlashVersion, | 817 ::switches::kPpapiFlashVersion, |
818 ::switches::kPpapiOutOfProcess, | 818 ::switches::kPpapiOutOfProcess, |
819 ::switches::kRendererStartupDialog, | 819 ::switches::kRendererStartupDialog, |
820 ::switches::kFlingTapSuppressMaxDown, | |
821 ::switches::kFlingTapSuppressMaxGap, | |
822 #if defined(USE_XI2_MT) | 820 #if defined(USE_XI2_MT) |
823 ::switches::kTouchCalibration, | 821 ::switches::kTouchCalibration, |
824 #endif | 822 #endif |
825 ::switches::kTouchDevices, | 823 ::switches::kTouchDevices, |
826 ::switches::kTouchEvents, | 824 ::switches::kTouchEvents, |
827 ::switches::kTouchOptimizedUI, | 825 ::switches::kTouchOptimizedUI, |
828 ::switches::kOldCheckboxStyle, | 826 ::switches::kOldCheckboxStyle, |
829 ::switches::kUIEnablePartialSwap, | 827 ::switches::kUIEnablePartialSwap, |
830 ::switches::kUIEnableThreadedCompositing, | 828 ::switches::kUIEnableThreadedCompositing, |
831 ::switches::kUIPrioritizeInGpuProcess, | 829 ::switches::kUIPrioritizeInGpuProcess, |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1251 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1254 CrosSettings* cros_settings = CrosSettings::Get(); | 1252 CrosSettings* cros_settings = CrosSettings::Get(); |
1255 bool allow_new_user = false; | 1253 bool allow_new_user = false; |
1256 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1254 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1257 if (allow_new_user) | 1255 if (allow_new_user) |
1258 return true; | 1256 return true; |
1259 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1257 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1260 } | 1258 } |
1261 | 1259 |
1262 } // namespace chromeos | 1260 } // namespace chromeos |
OLD | NEW |