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 "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 switches::kForceCompositingMode, | 997 switches::kForceCompositingMode, |
998 switches::kLoginProfile, | 998 switches::kLoginProfile, |
999 switches::kScrollPixels, | 999 switches::kScrollPixels, |
1000 switches::kNoFirstRun, | 1000 switches::kNoFirstRun, |
1001 switches::kPpapiFlashArgs, | 1001 switches::kPpapiFlashArgs, |
1002 switches::kPpapiFlashInProcess, | 1002 switches::kPpapiFlashInProcess, |
1003 switches::kPpapiFlashPath, | 1003 switches::kPpapiFlashPath, |
1004 switches::kPpapiFlashVersion, | 1004 switches::kPpapiFlashVersion, |
1005 switches::kTouchDevices, | 1005 switches::kTouchDevices, |
1006 #if defined(USE_AURA) | 1006 #if defined(USE_AURA) |
| 1007 ash::switches::kAshUberTray, |
1007 ash::switches::kAuraForceCompactWindowMode, | 1008 ash::switches::kAuraForceCompactWindowMode, |
1008 ash::switches::kAuraLegacyPowerButton, | 1009 ash::switches::kAuraLegacyPowerButton, |
1009 ash::switches::kAuraNoShadows, | 1010 ash::switches::kAuraNoShadows, |
1010 ash::switches::kAuraPanelManager, | 1011 ash::switches::kAuraPanelManager, |
1011 ash::switches::kAuraWindowAnimationsDisabled, | 1012 ash::switches::kAuraWindowAnimationsDisabled, |
1012 switches::kUIEnablePartialSwap, | 1013 switches::kUIEnablePartialSwap, |
1013 switches::kUIUseGPUProcess, | 1014 switches::kUIUseGPUProcess, |
1014 #endif | 1015 #endif |
1015 switches::kUseGL, | 1016 switches::kUseGL, |
1016 switches::kUserDataDir, | 1017 switches::kUserDataDir, |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1403 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1403 CrosSettings* cros_settings = CrosSettings::Get(); | 1404 CrosSettings* cros_settings = CrosSettings::Get(); |
1404 bool allow_new_user = false; | 1405 bool allow_new_user = false; |
1405 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1406 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1406 if (allow_new_user) | 1407 if (allow_new_user) |
1407 return true; | 1408 return true; |
1408 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1409 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1409 } | 1410 } |
1410 | 1411 |
1411 } // namespace chromeos | 1412 } // namespace chromeos |
OLD | NEW |