| 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 ::switches::kForceDeviceScaleFactor, | 826 ::switches::kForceDeviceScaleFactor, |
| 827 ::switches::kDisableAccelerated2dCanvas, | 827 ::switches::kDisableAccelerated2dCanvas, |
| 828 ::switches::kDisableAcceleratedPlugins, | 828 ::switches::kDisableAcceleratedPlugins, |
| 829 ::switches::kDisableAcceleratedVideoDecode, | 829 ::switches::kDisableAcceleratedVideoDecode, |
| 830 ::switches::kDisableGpuWatchdog, | 830 ::switches::kDisableGpuWatchdog, |
| 831 ::switches::kDisableLoginAnimations, | 831 ::switches::kDisableLoginAnimations, |
| 832 ::switches::kDisableOobeAnimation, | 832 ::switches::kDisableOobeAnimation, |
| 833 ::switches::kDisableSeccompFilterSandbox, | 833 ::switches::kDisableSeccompFilterSandbox, |
| 834 ::switches::kDisableSeccompSandbox, | 834 ::switches::kDisableSeccompSandbox, |
| 835 ::switches::kEnableAcceleratedOverflowScroll, | 835 ::switches::kEnableAcceleratedOverflowScroll, |
| 836 ::switches::kEnableChromebookFunctionKey, | |
| 837 ::switches::kEnableCompositingForFixedPosition, | 836 ::switches::kEnableCompositingForFixedPosition, |
| 838 ::switches::kEnableEncryptedMedia, | 837 ::switches::kEnableEncryptedMedia, |
| 839 ::switches::kEnableLogging, | 838 ::switches::kEnableLogging, |
| 840 ::switches::kEnableUIReleaseFrontSurface, | 839 ::switches::kEnableUIReleaseFrontSurface, |
| 841 ::switches::kEnablePinch, | 840 ::switches::kEnablePinch, |
| 842 ::switches::kEnableGestureTapHighlight, | 841 ::switches::kEnableGestureTapHighlight, |
| 843 ::switches::kEnableSmoothScrolling, | 842 ::switches::kEnableSmoothScrolling, |
| 844 ::switches::kEnableThreadedCompositing, | 843 ::switches::kEnableThreadedCompositing, |
| 845 ::switches::kEnableViewport, | 844 ::switches::kEnableViewport, |
| 846 ::switches::kDisableThreadedCompositing, | 845 ::switches::kDisableThreadedCompositing, |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1313 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1315 CrosSettings* cros_settings = CrosSettings::Get(); | 1314 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1316 bool allow_new_user = false; | 1315 bool allow_new_user = false; |
| 1317 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1316 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1318 if (allow_new_user) | 1317 if (allow_new_user) |
| 1319 return true; | 1318 return true; |
| 1320 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1319 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1321 } | 1320 } |
| 1322 | 1321 |
| 1323 } // namespace chromeos | 1322 } // namespace chromeos |
| OLD | NEW |