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