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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 ::switches::kDisableAcceleratedPlugins, | 1048 ::switches::kDisableAcceleratedPlugins, |
1049 ::switches::kDisableGpuWatchdog, | 1049 ::switches::kDisableGpuWatchdog, |
1050 ::switches::kDisableLoginAnimations, | 1050 ::switches::kDisableLoginAnimations, |
1051 ::switches::kDisableSeccompFilterSandbox, | 1051 ::switches::kDisableSeccompFilterSandbox, |
1052 ::switches::kDisableSeccompSandbox, | 1052 ::switches::kDisableSeccompSandbox, |
1053 ::switches::kDisableThreadedAnimation, | 1053 ::switches::kDisableThreadedAnimation, |
1054 ::switches::kEnableDevicePolicy, | 1054 ::switches::kEnableDevicePolicy, |
1055 ::switches::kEnableGView, | 1055 ::switches::kEnableGView, |
1056 ::switches::kEnableLogging, | 1056 ::switches::kEnableLogging, |
1057 ::switches::kEnablePartialSwap, | 1057 ::switches::kEnablePartialSwap, |
| 1058 ::switches::kEnablePinch, |
1058 ::switches::kEnableSmoothScrolling, | 1059 ::switches::kEnableSmoothScrolling, |
1059 ::switches::kEnableThreadedCompositing, | 1060 ::switches::kEnableThreadedCompositing, |
1060 ::switches::kEnableTouchEvents, | 1061 ::switches::kEnableTouchEvents, |
1061 ::switches::kEnableViewport, | 1062 ::switches::kEnableViewport, |
1062 ::switches::kDisableThreadedCompositing, | 1063 ::switches::kDisableThreadedCompositing, |
1063 ::switches::kForceCompositingMode, | 1064 ::switches::kForceCompositingMode, |
1064 ::switches::kGpuStartupDialog, | 1065 ::switches::kGpuStartupDialog, |
1065 ::switches::kLoginProfile, | 1066 ::switches::kLoginProfile, |
1066 ::switches::kScrollPixels, | 1067 ::switches::kScrollPixels, |
1067 ::switches::kNoFirstRun, | 1068 ::switches::kNoFirstRun, |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1455 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1455 CrosSettings* cros_settings = CrosSettings::Get(); | 1456 CrosSettings* cros_settings = CrosSettings::Get(); |
1456 bool allow_new_user = false; | 1457 bool allow_new_user = false; |
1457 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1458 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1458 if (allow_new_user) | 1459 if (allow_new_user) |
1459 return true; | 1460 return true; |
1460 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1461 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1461 } | 1462 } |
1462 | 1463 |
1463 } // namespace chromeos | 1464 } // namespace chromeos |
OLD | NEW |