| 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 ::switches::kUseCras, | 813 ::switches::kUseCras, |
| 814 #endif | 814 #endif |
| 815 ::switches::kUseGL, | 815 ::switches::kUseGL, |
| 816 ::switches::kUserDataDir, | 816 ::switches::kUserDataDir, |
| 817 ash::switches::kAshTouchHud, | 817 ash::switches::kAshTouchHud, |
| 818 ash::switches::kAuraLegacyPowerButton, | 818 ash::switches::kAuraLegacyPowerButton, |
| 819 ash::switches::kAuraNoShadows, | 819 ash::switches::kAuraNoShadows, |
| 820 ash::switches::kAshDisablePanelFitting, | 820 ash::switches::kAshDisablePanelFitting, |
| 821 cc::switches::kDisableThreadedAnimation, | 821 cc::switches::kDisableThreadedAnimation, |
| 822 cc::switches::kEnablePartialSwap, | 822 cc::switches::kEnablePartialSwap, |
| 823 cc::switches::kEnablePinchInCompositor, | |
| 824 chromeos::switches::kDbusStub, | 823 chromeos::switches::kDbusStub, |
| 825 chromeos::switches::kEnableNewNetworkHandlers, | 824 chromeos::switches::kEnableNewNetworkHandlers, |
| 826 gfx::switches::kEnableBrowserTextSubpixelPositioning, | 825 gfx::switches::kEnableBrowserTextSubpixelPositioning, |
| 827 gfx::switches::kEnableWebkitTextSubpixelPositioning, | 826 gfx::switches::kEnableWebkitTextSubpixelPositioning, |
| 828 views::corewm::switches::kWindowAnimationsDisabled, | 827 views::corewm::switches::kWindowAnimationsDisabled, |
| 829 }; | 828 }; |
| 830 command_line->CopySwitchesFrom(base_command_line, | 829 command_line->CopySwitchesFrom(base_command_line, |
| 831 kForwardSwitches, | 830 kForwardSwitches, |
| 832 arraysize(kForwardSwitches)); | 831 arraysize(kForwardSwitches)); |
| 833 command_line->AppendSwitch(::switches::kGuestSession); | 832 command_line->AppendSwitch(::switches::kGuestSession); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1249 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1251 CrosSettings* cros_settings = CrosSettings::Get(); | 1250 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1252 bool allow_new_user = false; | 1251 bool allow_new_user = false; |
| 1253 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1252 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1254 if (allow_new_user) | 1253 if (allow_new_user) |
| 1255 return true; | 1254 return true; |
| 1256 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1255 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1257 } | 1256 } |
| 1258 | 1257 |
| 1259 } // namespace chromeos | 1258 } // namespace chromeos |
| OLD | NEW |