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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 const CommandLine& base_command_line, | 1041 const CommandLine& base_command_line, |
1042 CommandLine* command_line) { | 1042 CommandLine* command_line) { |
1043 static const char* kForwardSwitches[] = { | 1043 static const char* kForwardSwitches[] = { |
1044 switches::kCompressSystemFeedback, | 1044 switches::kCompressSystemFeedback, |
1045 switches::kDeviceManagementUrl, | 1045 switches::kDeviceManagementUrl, |
1046 switches::kDefaultDeviceScaleFactor, | 1046 switches::kDefaultDeviceScaleFactor, |
1047 switches::kDisableAccelerated2dCanvas, | 1047 switches::kDisableAccelerated2dCanvas, |
1048 switches::kDisableAcceleratedPlugins, | 1048 switches::kDisableAcceleratedPlugins, |
1049 switches::kDisableGpuWatchdog, | 1049 switches::kDisableGpuWatchdog, |
1050 switches::kDisableLoginAnimations, | 1050 switches::kDisableLoginAnimations, |
| 1051 switches::kDisableSeccompFilterSandbox, |
1051 switches::kDisableSeccompSandbox, | 1052 switches::kDisableSeccompSandbox, |
1052 switches::kDisableThreadedAnimation, | 1053 switches::kDisableThreadedAnimation, |
1053 switches::kEnableDevicePolicy, | 1054 switches::kEnableDevicePolicy, |
1054 switches::kEnableGView, | 1055 switches::kEnableGView, |
1055 switches::kEnableLogging, | 1056 switches::kEnableLogging, |
1056 switches::kEnablePartialSwap, | 1057 switches::kEnablePartialSwap, |
1057 switches::kEnableSmoothScrolling, | 1058 switches::kEnableSmoothScrolling, |
1058 switches::kEnableThreadedCompositing, | 1059 switches::kEnableThreadedCompositing, |
1059 switches::kEnableTouchEvents, | 1060 switches::kEnableTouchEvents, |
1060 switches::kEnableViewport, | 1061 switches::kEnableViewport, |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1453 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1453 CrosSettings* cros_settings = CrosSettings::Get(); | 1454 CrosSettings* cros_settings = CrosSettings::Get(); |
1454 bool allow_new_user = false; | 1455 bool allow_new_user = false; |
1455 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1456 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1456 if (allow_new_user) | 1457 if (allow_new_user) |
1457 return true; | 1458 return true; |
1458 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1459 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1459 } | 1460 } |
1460 | 1461 |
1461 } // namespace chromeos | 1462 } // namespace chromeos |
OLD | NEW |