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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 ::switches::kEnableGestureTapHighlight, | 768 ::switches::kEnableGestureTapHighlight, |
769 ::switches::kEnableSmoothScrolling, | 769 ::switches::kEnableSmoothScrolling, |
770 ::switches::kEnableThreadedCompositing, | 770 ::switches::kEnableThreadedCompositing, |
771 ::switches::kEnableTouchCalibration, | 771 ::switches::kEnableTouchCalibration, |
772 ::switches::kEnableTouchEvents, | 772 ::switches::kEnableTouchEvents, |
773 ::switches::kEnableViewport, | 773 ::switches::kEnableViewport, |
774 ::switches::kEnableWebkitTextSubpixelPositioning, | 774 ::switches::kEnableWebkitTextSubpixelPositioning, |
775 ::switches::kDisableThreadedCompositing, | 775 ::switches::kDisableThreadedCompositing, |
776 ::switches::kForceCompositingMode, | 776 ::switches::kForceCompositingMode, |
777 ::switches::kGpuStartupDialog, | 777 ::switches::kGpuStartupDialog, |
| 778 ::switches::kHasChromeOSKeyboard, |
778 ::switches::kLoginProfile, | 779 ::switches::kLoginProfile, |
779 ::switches::kScrollPixels, | 780 ::switches::kScrollPixels, |
780 ::switches::kNaturalScrollDefault, | 781 ::switches::kNaturalScrollDefault, |
781 ::switches::kNoFirstRun, | 782 ::switches::kNoFirstRun, |
782 ::switches::kNoSandbox, | 783 ::switches::kNoSandbox, |
783 ::switches::kPpapiFlashArgs, | 784 ::switches::kPpapiFlashArgs, |
784 ::switches::kPpapiFlashInProcess, | 785 ::switches::kPpapiFlashInProcess, |
785 ::switches::kPpapiFlashPath, | 786 ::switches::kPpapiFlashPath, |
786 ::switches::kPpapiFlashVersion, | 787 ::switches::kPpapiFlashVersion, |
787 ::switches::kRendererStartupDialog, | 788 ::switches::kRendererStartupDialog, |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1228 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1228 CrosSettings* cros_settings = CrosSettings::Get(); | 1229 CrosSettings* cros_settings = CrosSettings::Get(); |
1229 bool allow_new_user = false; | 1230 bool allow_new_user = false; |
1230 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1231 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1231 if (allow_new_user) | 1232 if (allow_new_user) |
1232 return true; | 1233 return true; |
1233 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1234 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1234 } | 1235 } |
1235 | 1236 |
1236 } // namespace chromeos | 1237 } // namespace chromeos |
OLD | NEW |