| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 switches::kEnableGView, | 977 switches::kEnableGView, |
| 978 switches::kEnableSensors, | 978 switches::kEnableSensors, |
| 979 switches::kNoFirstRun, | 979 switches::kNoFirstRun, |
| 980 switches::kLoginProfile, | 980 switches::kLoginProfile, |
| 981 switches::kCompressSystemFeedback, | 981 switches::kCompressSystemFeedback, |
| 982 switches::kDisableSeccompSandbox, | 982 switches::kDisableSeccompSandbox, |
| 983 switches::kPpapiFlashInProcess, | 983 switches::kPpapiFlashInProcess, |
| 984 switches::kPpapiFlashPath, | 984 switches::kPpapiFlashPath, |
| 985 switches::kPpapiFlashVersion, | 985 switches::kPpapiFlashVersion, |
| 986 switches::kTouchDevices, | 986 switches::kTouchDevices, |
| 987 #if defined(TOUCH_UI) | 987 #if defined(USE_VIRTUAL_KEYBOARD) |
| 988 // The virtual keyboard extension for TOUCH_UI (chrome://keyboard) highly | 988 // The virtual keyboard extension (chrome://keyboard) highly relies on |
| 989 // relies on experimental APIs. | 989 // experimental APIs. |
| 990 switches::kEnableExperimentalExtensionApis, | 990 switches::kEnableExperimentalExtensionApis, |
| 991 #endif | 991 #endif |
| 992 }; | 992 }; |
| 993 command_line->CopySwitchesFrom(base_command_line, | 993 command_line->CopySwitchesFrom(base_command_line, |
| 994 kForwardSwitches, | 994 kForwardSwitches, |
| 995 arraysize(kForwardSwitches)); | 995 arraysize(kForwardSwitches)); |
| 996 command_line->AppendSwitch(switches::kGuestSession); | 996 command_line->AppendSwitch(switches::kGuestSession); |
| 997 command_line->AppendSwitch(switches::kIncognito); | 997 command_line->AppendSwitch(switches::kIncognito); |
| 998 command_line->AppendSwitchASCII(switches::kLoggingLevel, | 998 command_line->AppendSwitchASCII(switches::kLoggingLevel, |
| 999 kGuestModeLoggingLevel); | 999 kGuestModeLoggingLevel); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1349 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1350 CrosSettings* cros_settings = CrosSettings::Get(); | 1350 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1351 bool allow_new_user = false; | 1351 bool allow_new_user = false; |
| 1352 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1352 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1353 if (allow_new_user) | 1353 if (allow_new_user) |
| 1354 return true; | 1354 return true; |
| 1355 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1355 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 } // namespace chromeos | 1358 } // namespace chromeos |
| OLD | NEW |