| 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 static const char* kForwardSwitches[] = { | 746 static const char* kForwardSwitches[] = { |
| 747 ::switches::kAllowWebUICompositing, | 747 ::switches::kAllowWebUICompositing, |
| 748 ::switches::kCompressSystemFeedback, | 748 ::switches::kCompressSystemFeedback, |
| 749 ::switches::kDeviceManagementUrl, | 749 ::switches::kDeviceManagementUrl, |
| 750 ::switches::kForceDeviceScaleFactor, | 750 ::switches::kForceDeviceScaleFactor, |
| 751 ::switches::kDisableAccelerated2dCanvas, | 751 ::switches::kDisableAccelerated2dCanvas, |
| 752 ::switches::kDisableAcceleratedPlugins, | 752 ::switches::kDisableAcceleratedPlugins, |
| 753 ::switches::kDisableAcceleratedVideoDecode, | 753 ::switches::kDisableAcceleratedVideoDecode, |
| 754 ::switches::kDisableGpuWatchdog, | 754 ::switches::kDisableGpuWatchdog, |
| 755 ::switches::kDisableLoginAnimations, | 755 ::switches::kDisableLoginAnimations, |
| 756 ::switches::kDisableOobeAnimation, |
| 756 ::switches::kDisableSeccompFilterSandbox, | 757 ::switches::kDisableSeccompFilterSandbox, |
| 757 ::switches::kDisableSeccompSandbox, | 758 ::switches::kDisableSeccompSandbox, |
| 758 ::switches::kDisableThreadedAnimation, | 759 ::switches::kDisableThreadedAnimation, |
| 759 ::switches::kEnableCompositingForFixedPosition, | 760 ::switches::kEnableCompositingForFixedPosition, |
| 760 ::switches::kEnableDevicePolicy, | 761 ::switches::kEnableDevicePolicy, |
| 761 ::switches::kEnableGView, | 762 ::switches::kEnableGView, |
| 762 ::switches::kEnableHighDPIPDFPlugin, | 763 ::switches::kEnableHighDPIPDFPlugin, |
| 763 ::switches::kEnableLogging, | 764 ::switches::kEnableLogging, |
| 764 ::switches::kEnablePartialSwap, | 765 ::switches::kEnablePartialSwap, |
| 765 ::switches::kEnableUIReleaseFrontSurface, | 766 ::switches::kEnableUIReleaseFrontSurface, |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1205 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1205 CrosSettings* cros_settings = CrosSettings::Get(); | 1206 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1206 bool allow_new_user = false; | 1207 bool allow_new_user = false; |
| 1207 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1208 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1208 if (allow_new_user) | 1209 if (allow_new_user) |
| 1209 return true; | 1210 return true; |
| 1210 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1211 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1211 } | 1212 } |
| 1212 | 1213 |
| 1213 } // namespace chromeos | 1214 } // namespace chromeos |
| OLD | NEW |