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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 ::switches::kDisableAcceleratedPlugins, | 769 ::switches::kDisableAcceleratedPlugins, |
770 ::switches::kDisableAcceleratedVideoDecode, | 770 ::switches::kDisableAcceleratedVideoDecode, |
771 ::switches::kDisableGpuWatchdog, | 771 ::switches::kDisableGpuWatchdog, |
772 ::switches::kDisableLoginAnimations, | 772 ::switches::kDisableLoginAnimations, |
773 ::switches::kDisableOobeAnimation, | 773 ::switches::kDisableOobeAnimation, |
774 ::switches::kDisableSeccompFilterSandbox, | 774 ::switches::kDisableSeccompFilterSandbox, |
775 ::switches::kDisableSeccompSandbox, | 775 ::switches::kDisableSeccompSandbox, |
776 ::switches::kEnableChromebookFunctionKey, | 776 ::switches::kEnableChromebookFunctionKey, |
777 ::switches::kEnableCompositingForFixedPosition, | 777 ::switches::kEnableCompositingForFixedPosition, |
778 ::switches::kEnableEncryptedMedia, | 778 ::switches::kEnableEncryptedMedia, |
779 ::switches::kEnableGView, | |
780 ::switches::kEnableLogging, | 779 ::switches::kEnableLogging, |
781 ::switches::kEnableUIReleaseFrontSurface, | 780 ::switches::kEnableUIReleaseFrontSurface, |
782 ::switches::kEnablePinch, | 781 ::switches::kEnablePinch, |
783 ::switches::kEnableGestureTapHighlight, | 782 ::switches::kEnableGestureTapHighlight, |
784 ::switches::kEnableSmoothScrolling, | 783 ::switches::kEnableSmoothScrolling, |
785 ::switches::kEnableThreadedCompositing, | 784 ::switches::kEnableThreadedCompositing, |
786 ::switches::kEnableViewport, | 785 ::switches::kEnableViewport, |
787 ::switches::kDisableThreadedCompositing, | 786 ::switches::kDisableThreadedCompositing, |
788 ::switches::kForceCompositingMode, | 787 ::switches::kForceCompositingMode, |
789 ::switches::kGpuStartupDialog, | 788 ::switches::kGpuStartupDialog, |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1249 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1251 CrosSettings* cros_settings = CrosSettings::Get(); | 1250 CrosSettings* cros_settings = CrosSettings::Get(); |
1252 bool allow_new_user = false; | 1251 bool allow_new_user = false; |
1253 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1252 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1254 if (allow_new_user) | 1253 if (allow_new_user) |
1255 return true; | 1254 return true; |
1256 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1255 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1257 } | 1256 } |
1258 | 1257 |
1259 } // namespace chromeos | 1258 } // namespace chromeos |
OLD | NEW |