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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 ::switches::kNoSandbox, | 1068 ::switches::kNoSandbox, |
1069 ::switches::kPpapiFlashArgs, | 1069 ::switches::kPpapiFlashArgs, |
1070 ::switches::kPpapiFlashInProcess, | 1070 ::switches::kPpapiFlashInProcess, |
1071 ::switches::kPpapiFlashPath, | 1071 ::switches::kPpapiFlashPath, |
1072 ::switches::kPpapiFlashVersion, | 1072 ::switches::kPpapiFlashVersion, |
1073 ::switches::kRendererStartupDialog, | 1073 ::switches::kRendererStartupDialog, |
1074 ::switches::kFlingTapSuppressMaxDown, | 1074 ::switches::kFlingTapSuppressMaxDown, |
1075 ::switches::kFlingTapSuppressMaxGap, | 1075 ::switches::kFlingTapSuppressMaxGap, |
1076 ::switches::kTouchDevices, | 1076 ::switches::kTouchDevices, |
1077 ::switches::kTouchOptimizedUI, | 1077 ::switches::kTouchOptimizedUI, |
| 1078 ash::switches::kAshTouchHud, |
1078 ash::switches::kAuraLegacyPowerButton, | 1079 ash::switches::kAuraLegacyPowerButton, |
1079 ash::switches::kAuraNoShadows, | 1080 ash::switches::kAuraNoShadows, |
1080 ash::switches::kAuraPanelManager, | 1081 ash::switches::kAuraPanelManager, |
1081 ash::switches::kAuraWindowAnimationsDisabled, | 1082 ash::switches::kAuraWindowAnimationsDisabled, |
1082 ::switches::kUIEnablePartialSwap, | 1083 ::switches::kUIEnablePartialSwap, |
1083 ::switches::kUseGL, | 1084 ::switches::kUseGL, |
1084 ::switches::kUserDataDir, | 1085 ::switches::kUserDataDir, |
1085 #if defined(USE_VIRTUAL_KEYBOARD) | 1086 #if defined(USE_VIRTUAL_KEYBOARD) |
1086 // The virtual keyboard extension (chrome://keyboard) highly relies on | 1087 // The virtual keyboard extension (chrome://keyboard) highly relies on |
1087 // experimental APIs. | 1088 // experimental APIs. |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1454 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1454 CrosSettings* cros_settings = CrosSettings::Get(); | 1455 CrosSettings* cros_settings = CrosSettings::Get(); |
1455 bool allow_new_user = false; | 1456 bool allow_new_user = false; |
1456 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1457 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1457 if (allow_new_user) | 1458 if (allow_new_user) |
1458 return true; | 1459 return true; |
1459 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1460 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1460 } | 1461 } |
1461 | 1462 |
1462 } // namespace chromeos | 1463 } // namespace chromeos |
OLD | NEW |