| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 ::switches::kDeviceManagementUrl, | 750 ::switches::kDeviceManagementUrl, |
| 751 ::switches::kForceDeviceScaleFactor, | 751 ::switches::kForceDeviceScaleFactor, |
| 752 ::switches::kDisableAccelerated2dCanvas, | 752 ::switches::kDisableAccelerated2dCanvas, |
| 753 ::switches::kDisableAcceleratedPlugins, | 753 ::switches::kDisableAcceleratedPlugins, |
| 754 ::switches::kDisableAcceleratedVideoDecode, | 754 ::switches::kDisableAcceleratedVideoDecode, |
| 755 ::switches::kDisableGpuWatchdog, | 755 ::switches::kDisableGpuWatchdog, |
| 756 ::switches::kDisableLoginAnimations, | 756 ::switches::kDisableLoginAnimations, |
| 757 ::switches::kDisableOobeAnimation, | 757 ::switches::kDisableOobeAnimation, |
| 758 ::switches::kDisableSeccompFilterSandbox, | 758 ::switches::kDisableSeccompFilterSandbox, |
| 759 ::switches::kDisableSeccompSandbox, | 759 ::switches::kDisableSeccompSandbox, |
| 760 ::switches::kDisableThreadedAnimation, | |
| 761 ::switches::kEnableBrowserTextSubpixelPositioning, | 760 ::switches::kEnableBrowserTextSubpixelPositioning, |
| 762 ::switches::kEnableCompositingForFixedPosition, | 761 ::switches::kEnableCompositingForFixedPosition, |
| 763 ::switches::kEnableGView, | 762 ::switches::kEnableGView, |
| 764 ::switches::kEnableLogging, | 763 ::switches::kEnableLogging, |
| 765 ::switches::kEnablePartialSwap, | |
| 766 ::switches::kEnableUIReleaseFrontSurface, | 764 ::switches::kEnableUIReleaseFrontSurface, |
| 767 ::switches::kEnablePinch, | 765 ::switches::kEnablePinch, |
| 768 ::switches::kEnableGestureTapHighlight, | 766 ::switches::kEnableGestureTapHighlight, |
| 769 ::switches::kEnableSmoothScrolling, | 767 ::switches::kEnableSmoothScrolling, |
| 770 ::switches::kEnableThreadedCompositing, | 768 ::switches::kEnableThreadedCompositing, |
| 771 ::switches::kEnableTouchCalibration, | 769 ::switches::kEnableTouchCalibration, |
| 772 ::switches::kEnableViewport, | 770 ::switches::kEnableViewport, |
| 773 ::switches::kEnableWebkitTextSubpixelPositioning, | 771 ::switches::kEnableWebkitTextSubpixelPositioning, |
| 774 ::switches::kDisableThreadedCompositing, | 772 ::switches::kDisableThreadedCompositing, |
| 775 ::switches::kForceCompositingMode, | 773 ::switches::kForceCompositingMode, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 786 ::switches::kFlingTapSuppressMaxDown, | 784 ::switches::kFlingTapSuppressMaxDown, |
| 787 ::switches::kFlingTapSuppressMaxGap, | 785 ::switches::kFlingTapSuppressMaxGap, |
| 788 ::switches::kTouchDevices, | 786 ::switches::kTouchDevices, |
| 789 ::switches::kTouchOptimizedUI, | 787 ::switches::kTouchOptimizedUI, |
| 790 ::switches::kOldCheckboxStyle, | 788 ::switches::kOldCheckboxStyle, |
| 791 ash::switches::kAshTouchHud, | 789 ash::switches::kAshTouchHud, |
| 792 ash::switches::kAshWindowAnimationsDisabled, | 790 ash::switches::kAshWindowAnimationsDisabled, |
| 793 ash::switches::kAuraLegacyPowerButton, | 791 ash::switches::kAuraLegacyPowerButton, |
| 794 ash::switches::kAuraNoShadows, | 792 ash::switches::kAuraNoShadows, |
| 795 ash::switches::kAshDisablePanelFitting, | 793 ash::switches::kAshDisablePanelFitting, |
| 794 cc::switches::kDisableThreadedAnimation, |
| 795 cc::switches::kEnablePartialSwap, |
| 796 cc::switches::kEnablePinchInCompositor, |
| 796 ::switches::kUIEnablePartialSwap, | 797 ::switches::kUIEnablePartialSwap, |
| 797 ::switches::kUIPrioritizeInGpuProcess, | 798 ::switches::kUIPrioritizeInGpuProcess, |
| 798 #if defined(USE_CRAS) | 799 #if defined(USE_CRAS) |
| 799 ::switches::kUseCras, | 800 ::switches::kUseCras, |
| 800 #endif | 801 #endif |
| 801 ::switches::kUseGL, | 802 ::switches::kUseGL, |
| 802 ::switches::kUserDataDir, | 803 ::switches::kUserDataDir, |
| 803 chromeos::switches::kDbusStub, | 804 chromeos::switches::kDbusStub, |
| 804 }; | 805 }; |
| 805 command_line->CopySwitchesFrom(base_command_line, | 806 command_line->CopySwitchesFrom(base_command_line, |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1220 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1220 CrosSettings* cros_settings = CrosSettings::Get(); | 1221 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1221 bool allow_new_user = false; | 1222 bool allow_new_user = false; |
| 1222 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1223 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1223 if (allow_new_user) | 1224 if (allow_new_user) |
| 1224 return true; | 1225 return true; |
| 1225 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1226 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1226 } | 1227 } |
| 1227 | 1228 |
| 1228 } // namespace chromeos | 1229 } // namespace chromeos |
| OLD | NEW |