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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 switches::kDeviceManagementUrl, | 1041 switches::kDeviceManagementUrl, |
1042 switches::kDisableAccelerated2dCanvas, | 1042 switches::kDisableAccelerated2dCanvas, |
1043 switches::kDisableAcceleratedPlugins, | 1043 switches::kDisableAcceleratedPlugins, |
1044 switches::kDisableLoginAnimations, | 1044 switches::kDisableLoginAnimations, |
1045 switches::kDisableSeccompSandbox, | 1045 switches::kDisableSeccompSandbox, |
1046 switches::kDisableThreadedAnimation, | 1046 switches::kDisableThreadedAnimation, |
1047 switches::kEnableDevicePolicy, | 1047 switches::kEnableDevicePolicy, |
1048 switches::kEnableGView, | 1048 switches::kEnableGView, |
1049 switches::kEnableLogging, | 1049 switches::kEnableLogging, |
1050 switches::kEnablePartialSwap, | 1050 switches::kEnablePartialSwap, |
1051 switches::kEnableSensors, | |
1052 switches::kEnableSmoothScrolling, | 1051 switches::kEnableSmoothScrolling, |
1053 switches::kEnableThreadedCompositing, | 1052 switches::kEnableThreadedCompositing, |
1054 switches::kDisableThreadedCompositing, | 1053 switches::kDisableThreadedCompositing, |
1055 switches::kForceCompositingMode, | 1054 switches::kForceCompositingMode, |
1056 switches::kLoginProfile, | 1055 switches::kLoginProfile, |
1057 switches::kScrollPixels, | 1056 switches::kScrollPixels, |
1058 switches::kNoFirstRun, | 1057 switches::kNoFirstRun, |
1059 switches::kPpapiFlashArgs, | 1058 switches::kPpapiFlashArgs, |
1060 switches::kPpapiFlashInProcess, | 1059 switches::kPpapiFlashInProcess, |
1061 switches::kPpapiFlashPath, | 1060 switches::kPpapiFlashPath, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1440 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1442 CrosSettings* cros_settings = CrosSettings::Get(); | 1441 CrosSettings* cros_settings = CrosSettings::Get(); |
1443 bool allow_new_user = false; | 1442 bool allow_new_user = false; |
1444 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1443 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1445 if (allow_new_user) | 1444 if (allow_new_user) |
1446 return true; | 1445 return true; |
1447 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1446 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1448 } | 1447 } |
1449 | 1448 |
1450 } // namespace chromeos | 1449 } // namespace chromeos |
OLD | NEW |