| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 ::switches::kRendererStartupDialog, | 785 ::switches::kRendererStartupDialog, |
| 786 ::switches::kFlingTapSuppressMaxDown, | 786 ::switches::kFlingTapSuppressMaxDown, |
| 787 ::switches::kFlingTapSuppressMaxGap, | 787 ::switches::kFlingTapSuppressMaxGap, |
| 788 ::switches::kTouchDevices, | 788 ::switches::kTouchDevices, |
| 789 ::switches::kTouchOptimizedUI, | 789 ::switches::kTouchOptimizedUI, |
| 790 ::switches::kOldCheckboxStyle, | 790 ::switches::kOldCheckboxStyle, |
| 791 ash::switches::kAshTouchHud, | 791 ash::switches::kAshTouchHud, |
| 792 ash::switches::kAshWindowAnimationsDisabled, | 792 ash::switches::kAshWindowAnimationsDisabled, |
| 793 ash::switches::kAuraLegacyPowerButton, | 793 ash::switches::kAuraLegacyPowerButton, |
| 794 ash::switches::kAuraNoShadows, | 794 ash::switches::kAuraNoShadows, |
| 795 ash::switches::kAshDisablePanelFitting, |
| 795 ::switches::kUIEnablePartialSwap, | 796 ::switches::kUIEnablePartialSwap, |
| 796 ::switches::kUIPrioritizeInGpuProcess, | 797 ::switches::kUIPrioritizeInGpuProcess, |
| 797 #if defined(USE_CRAS) | 798 #if defined(USE_CRAS) |
| 798 ::switches::kUseCras, | 799 ::switches::kUseCras, |
| 799 #endif | 800 #endif |
| 800 ::switches::kUseGL, | 801 ::switches::kUseGL, |
| 801 ::switches::kUserDataDir, | 802 ::switches::kUserDataDir, |
| 802 chromeos::switches::kDbusStub, | 803 chromeos::switches::kDbusStub, |
| 803 }; | 804 }; |
| 804 command_line->CopySwitchesFrom(base_command_line, | 805 command_line->CopySwitchesFrom(base_command_line, |
| (...skipping 414 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 |