| 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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 #if defined(USE_CRAS) | 795 #if defined(USE_CRAS) |
| 796 ::switches::kUseCras, | 796 ::switches::kUseCras, |
| 797 #endif | 797 #endif |
| 798 ::switches::kUseGL, | 798 ::switches::kUseGL, |
| 799 ::switches::kUserDataDir, | 799 ::switches::kUserDataDir, |
| 800 ash::switches::kAshTouchHud, | 800 ash::switches::kAshTouchHud, |
| 801 ash::switches::kAshWindowAnimationsDisabled, | 801 ash::switches::kAshWindowAnimationsDisabled, |
| 802 ash::switches::kAuraLegacyPowerButton, | 802 ash::switches::kAuraLegacyPowerButton, |
| 803 ash::switches::kAuraNoShadows, | 803 ash::switches::kAuraNoShadows, |
| 804 ash::switches::kAshDisablePanelFitting, | 804 ash::switches::kAshDisablePanelFitting, |
| 805 ash::switches::kAshEnableNetworkStateHandler, |
| 805 cc::switches::kDisableThreadedAnimation, | 806 cc::switches::kDisableThreadedAnimation, |
| 806 cc::switches::kEnablePartialSwap, | 807 cc::switches::kEnablePartialSwap, |
| 807 cc::switches::kEnablePinchInCompositor, | 808 cc::switches::kEnablePinchInCompositor, |
| 808 chromeos::switches::kDbusStub, | 809 chromeos::switches::kDbusStub, |
| 809 gfx::switches::kEnableBrowserTextSubpixelPositioning, | 810 gfx::switches::kEnableBrowserTextSubpixelPositioning, |
| 810 gfx::switches::kEnableWebkitTextSubpixelPositioning, | 811 gfx::switches::kEnableWebkitTextSubpixelPositioning, |
| 811 }; | 812 }; |
| 812 command_line->CopySwitchesFrom(base_command_line, | 813 command_line->CopySwitchesFrom(base_command_line, |
| 813 kForwardSwitches, | 814 kForwardSwitches, |
| 814 arraysize(kForwardSwitches)); | 815 arraysize(kForwardSwitches)); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1234 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1234 CrosSettings* cros_settings = CrosSettings::Get(); | 1235 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1235 bool allow_new_user = false; | 1236 bool allow_new_user = false; |
| 1236 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1237 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1237 if (allow_new_user) | 1238 if (allow_new_user) |
| 1238 return true; | 1239 return true; |
| 1239 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1240 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1240 } | 1241 } |
| 1241 | 1242 |
| 1242 } // namespace chromeos | 1243 } // namespace chromeos |
| OLD | NEW |