| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str); | 705 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str); |
| 706 } | 706 } |
| 707 | 707 |
| 708 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( | 708 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( |
| 709 const GURL& start_url, | 709 const GURL& start_url, |
| 710 const CommandLine& base_command_line, | 710 const CommandLine& base_command_line, |
| 711 CommandLine* command_line) { | 711 CommandLine* command_line) { |
| 712 static const char* kForwardSwitches[] = { | 712 static const char* kForwardSwitches[] = { |
| 713 ::switches::kCompressSystemFeedback, | 713 ::switches::kCompressSystemFeedback, |
| 714 ::switches::kDeviceManagementUrl, | 714 ::switches::kDeviceManagementUrl, |
| 715 ::switches::kDefaultDeviceScaleFactor, | 715 ::switches::kForceDeviceScaleFactor, |
| 716 ::switches::kDisableAccelerated2dCanvas, | 716 ::switches::kDisableAccelerated2dCanvas, |
| 717 ::switches::kDisableAcceleratedPlugins, | 717 ::switches::kDisableAcceleratedPlugins, |
| 718 ::switches::kDisableGpuWatchdog, | 718 ::switches::kDisableGpuWatchdog, |
| 719 ::switches::kDisableLoginAnimations, | 719 ::switches::kDisableLoginAnimations, |
| 720 ::switches::kDisableSeccompFilterSandbox, | 720 ::switches::kDisableSeccompFilterSandbox, |
| 721 ::switches::kDisableSeccompSandbox, | 721 ::switches::kDisableSeccompSandbox, |
| 722 ::switches::kDisableThreadedAnimation, | 722 ::switches::kDisableThreadedAnimation, |
| 723 ::switches::kEnableDevicePolicy, | 723 ::switches::kEnableDevicePolicy, |
| 724 ::switches::kEnableGView, | 724 ::switches::kEnableGView, |
| 725 ::switches::kEnableLogging, | 725 ::switches::kEnableLogging, |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1111 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1112 CrosSettings* cros_settings = CrosSettings::Get(); | 1112 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1113 bool allow_new_user = false; | 1113 bool allow_new_user = false; |
| 1114 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1114 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1115 if (allow_new_user) | 1115 if (allow_new_user) |
| 1116 return true; | 1116 return true; |
| 1117 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1117 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 } // namespace chromeos | 1120 } // namespace chromeos |
| OLD | NEW |