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