| 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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 | 1038 |
| 1039 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( | 1039 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( |
| 1040 const GURL& start_url, | 1040 const GURL& start_url, |
| 1041 const CommandLine& base_command_line, | 1041 const CommandLine& base_command_line, |
| 1042 CommandLine* command_line) { | 1042 CommandLine* command_line) { |
| 1043 static const char* kForwardSwitches[] = { | 1043 static const char* kForwardSwitches[] = { |
| 1044 switches::kCompressSystemFeedback, | 1044 switches::kCompressSystemFeedback, |
| 1045 switches::kDeviceManagementUrl, | 1045 switches::kDeviceManagementUrl, |
| 1046 switches::kDisableAccelerated2dCanvas, | 1046 switches::kDisableAccelerated2dCanvas, |
| 1047 switches::kDisableAcceleratedPlugins, | 1047 switches::kDisableAcceleratedPlugins, |
| 1048 switches::kDisableGpuWatchdog, |
| 1048 switches::kDisableLoginAnimations, | 1049 switches::kDisableLoginAnimations, |
| 1049 switches::kDisableSeccompSandbox, | 1050 switches::kDisableSeccompSandbox, |
| 1050 switches::kDisableThreadedAnimation, | 1051 switches::kDisableThreadedAnimation, |
| 1051 switches::kEnableDevicePolicy, | 1052 switches::kEnableDevicePolicy, |
| 1052 switches::kEnableGView, | 1053 switches::kEnableGView, |
| 1053 switches::kEnableLogging, | 1054 switches::kEnableLogging, |
| 1054 switches::kEnablePartialSwap, | 1055 switches::kEnablePartialSwap, |
| 1055 switches::kEnableSmoothScrolling, | 1056 switches::kEnableSmoothScrolling, |
| 1056 switches::kEnableThreadedCompositing, | 1057 switches::kEnableThreadedCompositing, |
| 1057 switches::kEnableTouchEvents, | 1058 switches::kEnableTouchEvents, |
| 1058 switches::kDisableThreadedCompositing, | 1059 switches::kDisableThreadedCompositing, |
| 1059 switches::kForceCompositingMode, | 1060 switches::kForceCompositingMode, |
| 1061 switches::kGpuStartupDialog, |
| 1060 switches::kLoginProfile, | 1062 switches::kLoginProfile, |
| 1061 switches::kScrollPixels, | 1063 switches::kScrollPixels, |
| 1062 switches::kNoFirstRun, | 1064 switches::kNoFirstRun, |
| 1065 switches::kNoSandbox, |
| 1063 switches::kPpapiFlashArgs, | 1066 switches::kPpapiFlashArgs, |
| 1064 switches::kPpapiFlashInProcess, | 1067 switches::kPpapiFlashInProcess, |
| 1065 switches::kPpapiFlashPath, | 1068 switches::kPpapiFlashPath, |
| 1066 switches::kPpapiFlashVersion, | 1069 switches::kPpapiFlashVersion, |
| 1070 switches::kRendererStartupDialog, |
| 1067 switches::kFlingTapSuppressMaxDown, | 1071 switches::kFlingTapSuppressMaxDown, |
| 1068 switches::kFlingTapSuppressMaxGap, | 1072 switches::kFlingTapSuppressMaxGap, |
| 1069 switches::kTouchDevices, | 1073 switches::kTouchDevices, |
| 1070 ash::switches::kAuraLegacyPowerButton, | 1074 ash::switches::kAuraLegacyPowerButton, |
| 1071 ash::switches::kAuraNoShadows, | 1075 ash::switches::kAuraNoShadows, |
| 1072 ash::switches::kAuraPanelManager, | 1076 ash::switches::kAuraPanelManager, |
| 1073 ash::switches::kAuraWindowAnimationsDisabled, | 1077 ash::switches::kAuraWindowAnimationsDisabled, |
| 1074 switches::kUIEnablePartialSwap, | 1078 switches::kUIEnablePartialSwap, |
| 1075 switches::kUIUseGPUProcess, | 1079 switches::kUIUseGPUProcess, |
| 1076 switches::kUseGL, | 1080 switches::kUseGL, |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1449 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1446 CrosSettings* cros_settings = CrosSettings::Get(); | 1450 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1447 bool allow_new_user = false; | 1451 bool allow_new_user = false; |
| 1448 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1452 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1449 if (allow_new_user) | 1453 if (allow_new_user) |
| 1450 return true; | 1454 return true; |
| 1451 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1455 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1452 } | 1456 } |
| 1453 | 1457 |
| 1454 } // namespace chromeos | 1458 } // namespace chromeos |
| OLD | NEW |