| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 static const char* kForwardSwitches[] = { | 731 static const char* kForwardSwitches[] = { |
| 732 ::switches::kAllowWebUICompositing, | 732 ::switches::kAllowWebUICompositing, |
| 733 ::switches::kCompressSystemFeedback, | 733 ::switches::kCompressSystemFeedback, |
| 734 ::switches::kDeviceManagementUrl, | 734 ::switches::kDeviceManagementUrl, |
| 735 ::switches::kForceDeviceScaleFactor, | 735 ::switches::kForceDeviceScaleFactor, |
| 736 ::switches::kDisableAccelerated2dCanvas, | 736 ::switches::kDisableAccelerated2dCanvas, |
| 737 ::switches::kDisableAcceleratedPlugins, | 737 ::switches::kDisableAcceleratedPlugins, |
| 738 ::switches::kDisableAcceleratedVideoDecode, | 738 ::switches::kDisableAcceleratedVideoDecode, |
| 739 ::switches::kDisableGpuWatchdog, | 739 ::switches::kDisableGpuWatchdog, |
| 740 ::switches::kDisableLoginAnimations, | 740 ::switches::kDisableLoginAnimations, |
| 741 ::switches::kDisableOobeAnimation, |
| 741 ::switches::kDisableSeccompFilterSandbox, | 742 ::switches::kDisableSeccompFilterSandbox, |
| 742 ::switches::kDisableSeccompSandbox, | 743 ::switches::kDisableSeccompSandbox, |
| 743 ::switches::kDisableThreadedAnimation, | 744 ::switches::kDisableThreadedAnimation, |
| 744 ::switches::kEnableDevicePolicy, | 745 ::switches::kEnableDevicePolicy, |
| 745 ::switches::kEnableGView, | 746 ::switches::kEnableGView, |
| 746 ::switches::kEnableHighDPIPDFPlugin, | 747 ::switches::kEnableHighDPIPDFPlugin, |
| 747 ::switches::kEnableLogging, | 748 ::switches::kEnableLogging, |
| 748 ::switches::kEnablePartialSwap, | 749 ::switches::kEnablePartialSwap, |
| 749 ::switches::kEnableUIReleaseFrontSurface, | 750 ::switches::kEnableUIReleaseFrontSurface, |
| 750 ::switches::kEnablePinch, | 751 ::switches::kEnablePinch, |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1190 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1190 CrosSettings* cros_settings = CrosSettings::Get(); | 1191 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1191 bool allow_new_user = false; | 1192 bool allow_new_user = false; |
| 1192 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1193 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1193 if (allow_new_user) | 1194 if (allow_new_user) |
| 1194 return true; | 1195 return true; |
| 1195 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1196 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1196 } | 1197 } |
| 1197 | 1198 |
| 1198 } // namespace chromeos | 1199 } // namespace chromeos |
| OLD | NEW |