| 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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::kDisableOobeAnimation, |
| 757 ::switches::kDisableSeccompFilterSandbox, | 757 ::switches::kDisableSeccompFilterSandbox, |
| 758 ::switches::kDisableSeccompSandbox, | 758 ::switches::kDisableSeccompSandbox, |
| 759 ::switches::kDisableThreadedAnimation, | 759 ::switches::kDisableThreadedAnimation, |
| 760 ::switches::kEnableCompositingForFixedPosition, | 760 ::switches::kEnableCompositingForFixedPosition, |
| 761 ::switches::kEnableDevicePolicy, | |
| 762 ::switches::kEnableGView, | 761 ::switches::kEnableGView, |
| 763 ::switches::kEnableHighDPIPDFPlugin, | 762 ::switches::kEnableHighDPIPDFPlugin, |
| 764 ::switches::kEnableLogging, | 763 ::switches::kEnableLogging, |
| 765 ::switches::kEnablePartialSwap, | 764 ::switches::kEnablePartialSwap, |
| 766 ::switches::kEnableUIReleaseFrontSurface, | 765 ::switches::kEnableUIReleaseFrontSurface, |
| 767 ::switches::kEnablePinch, | 766 ::switches::kEnablePinch, |
| 768 ::switches::kEnableSmoothScrolling, | 767 ::switches::kEnableSmoothScrolling, |
| 769 ::switches::kEnableThreadedCompositing, | 768 ::switches::kEnableThreadedCompositing, |
| 770 ::switches::kEnableTouchEvents, | 769 ::switches::kEnableTouchEvents, |
| 771 ::switches::kEnableViewport, | 770 ::switches::kEnableViewport, |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1204 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1206 CrosSettings* cros_settings = CrosSettings::Get(); | 1205 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1207 bool allow_new_user = false; | 1206 bool allow_new_user = false; |
| 1208 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1207 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1209 if (allow_new_user) | 1208 if (allow_new_user) |
| 1210 return true; | 1209 return true; |
| 1211 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1210 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1212 } | 1211 } |
| 1213 | 1212 |
| 1214 } // namespace chromeos | 1213 } // namespace chromeos |
| OLD | NEW |