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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 ::switches::kTouchOptimizedUI, | 737 ::switches::kTouchOptimizedUI, |
738 ::switches::kOldCheckboxStyle, | 738 ::switches::kOldCheckboxStyle, |
739 ::switches::kUIEnablePartialSwap, | 739 ::switches::kUIEnablePartialSwap, |
740 ::switches::kUIEnableThreadedCompositing, | 740 ::switches::kUIEnableThreadedCompositing, |
741 ::switches::kUIPrioritizeInGpuProcess, | 741 ::switches::kUIPrioritizeInGpuProcess, |
742 #if defined(USE_CRAS) | 742 #if defined(USE_CRAS) |
743 ::switches::kUseCras, | 743 ::switches::kUseCras, |
744 #endif | 744 #endif |
745 ::switches::kUseGL, | 745 ::switches::kUseGL, |
746 ::switches::kUserDataDir, | 746 ::switches::kUserDataDir, |
| 747 ::switches::kUseExynosVda, |
747 ash::switches::kAshTouchHud, | 748 ash::switches::kAshTouchHud, |
748 ash::switches::kAuraLegacyPowerButton, | 749 ash::switches::kAuraLegacyPowerButton, |
749 ash::switches::kAuraNoShadows, | 750 ash::switches::kAuraNoShadows, |
750 ash::switches::kAshDisablePanelFitting, | 751 ash::switches::kAshDisablePanelFitting, |
751 cc::switches::kDisableThreadedAnimation, | 752 cc::switches::kDisableThreadedAnimation, |
752 cc::switches::kEnablePartialSwap, | 753 cc::switches::kEnablePartialSwap, |
753 chromeos::switches::kDbusStub, | 754 chromeos::switches::kDbusStub, |
754 chromeos::switches::kEnableNewNetworkHandlers, | 755 chromeos::switches::kEnableNewNetworkHandlers, |
755 gfx::switches::kEnableBrowserTextSubpixelPositioning, | 756 gfx::switches::kEnableBrowserTextSubpixelPositioning, |
756 gfx::switches::kEnableWebkitTextSubpixelPositioning, | 757 gfx::switches::kEnableWebkitTextSubpixelPositioning, |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1015 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1015 CrosSettings* cros_settings = CrosSettings::Get(); | 1016 CrosSettings* cros_settings = CrosSettings::Get(); |
1016 bool allow_new_user = false; | 1017 bool allow_new_user = false; |
1017 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1018 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1018 if (allow_new_user) | 1019 if (allow_new_user) |
1019 return true; | 1020 return true; |
1020 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1021 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1021 } | 1022 } |
1022 | 1023 |
1023 } // namespace chromeos | 1024 } // namespace chromeos |
OLD | NEW |