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