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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 ::switches::kTouchDevices, | 1077 ::switches::kTouchDevices, |
1078 ::switches::kTouchOptimizedUI, | 1078 ::switches::kTouchOptimizedUI, |
1079 ash::switches::kAshTouchHud, | 1079 ash::switches::kAshTouchHud, |
1080 ash::switches::kAuraLegacyPowerButton, | 1080 ash::switches::kAuraLegacyPowerButton, |
1081 ash::switches::kAuraNoShadows, | 1081 ash::switches::kAuraNoShadows, |
1082 ash::switches::kAuraPanelManager, | 1082 ash::switches::kAuraPanelManager, |
1083 ash::switches::kAuraWindowAnimationsDisabled, | 1083 ash::switches::kAuraWindowAnimationsDisabled, |
1084 ::switches::kUIEnablePartialSwap, | 1084 ::switches::kUIEnablePartialSwap, |
1085 ::switches::kUseGL, | 1085 ::switches::kUseGL, |
1086 ::switches::kUserDataDir, | 1086 ::switches::kUserDataDir, |
1087 #if defined(USE_VIRTUAL_KEYBOARD) | |
1088 // The virtual keyboard extension (chrome://keyboard) highly relies on | |
1089 // experimental APIs. | |
1090 ::switches::kEnableExperimentalExtensionApis, | |
1091 #endif | |
1092 chromeos::switches::kDbusStub, | 1087 chromeos::switches::kDbusStub, |
1093 }; | 1088 }; |
1094 command_line->CopySwitchesFrom(base_command_line, | 1089 command_line->CopySwitchesFrom(base_command_line, |
1095 kForwardSwitches, | 1090 kForwardSwitches, |
1096 arraysize(kForwardSwitches)); | 1091 arraysize(kForwardSwitches)); |
1097 command_line->AppendSwitch(::switches::kGuestSession); | 1092 command_line->AppendSwitch(::switches::kGuestSession); |
1098 command_line->AppendSwitch(::switches::kIncognito); | 1093 command_line->AppendSwitch(::switches::kIncognito); |
1099 command_line->AppendSwitchASCII(::switches::kLoggingLevel, | 1094 command_line->AppendSwitchASCII(::switches::kLoggingLevel, |
1100 kGuestModeLoggingLevel); | 1095 kGuestModeLoggingLevel); |
1101 | 1096 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1450 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1456 CrosSettings* cros_settings = CrosSettings::Get(); | 1451 CrosSettings* cros_settings = CrosSettings::Get(); |
1457 bool allow_new_user = false; | 1452 bool allow_new_user = false; |
1458 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1453 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1459 if (allow_new_user) | 1454 if (allow_new_user) |
1460 return true; | 1455 return true; |
1461 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1456 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1462 } | 1457 } |
1463 | 1458 |
1464 } // namespace chromeos | 1459 } // namespace chromeos |
OLD | NEW |