| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 ::switches::kEnablePartialSwap, | 764 ::switches::kEnablePartialSwap, |
| 765 ::switches::kEnableUIReleaseFrontSurface, | 765 ::switches::kEnableUIReleaseFrontSurface, |
| 766 ::switches::kEnablePinch, | 766 ::switches::kEnablePinch, |
| 767 ::switches::kEnableSmoothScrolling, | 767 ::switches::kEnableSmoothScrolling, |
| 768 ::switches::kEnableThreadedCompositing, | 768 ::switches::kEnableThreadedCompositing, |
| 769 ::switches::kEnableTouchEvents, | 769 ::switches::kEnableTouchEvents, |
| 770 ::switches::kEnableViewport, | 770 ::switches::kEnableViewport, |
| 771 ::switches::kDisableThreadedCompositing, | 771 ::switches::kDisableThreadedCompositing, |
| 772 ::switches::kForceCompositingMode, | 772 ::switches::kForceCompositingMode, |
| 773 ::switches::kGpuStartupDialog, | 773 ::switches::kGpuStartupDialog, |
| 774 ::switches::kLoad2xResources, | |
| 775 ::switches::kLoginProfile, | 774 ::switches::kLoginProfile, |
| 776 ::switches::kScrollPixels, | 775 ::switches::kScrollPixels, |
| 777 ::switches::kNoFirstRun, | 776 ::switches::kNoFirstRun, |
| 778 ::switches::kNoSandbox, | 777 ::switches::kNoSandbox, |
| 779 ::switches::kPpapiFlashArgs, | 778 ::switches::kPpapiFlashArgs, |
| 780 ::switches::kPpapiFlashInProcess, | 779 ::switches::kPpapiFlashInProcess, |
| 781 ::switches::kPpapiFlashPath, | 780 ::switches::kPpapiFlashPath, |
| 782 ::switches::kPpapiFlashVersion, | 781 ::switches::kPpapiFlashVersion, |
| 783 ::switches::kRendererStartupDialog, | 782 ::switches::kRendererStartupDialog, |
| 784 ::switches::kFlingTapSuppressMaxDown, | 783 ::switches::kFlingTapSuppressMaxDown, |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1204 bool LoginUtils::IsWhitelisted(const std::string& username) { |
| 1206 CrosSettings* cros_settings = CrosSettings::Get(); | 1205 CrosSettings* cros_settings = CrosSettings::Get(); |
| 1207 bool allow_new_user = false; | 1206 bool allow_new_user = false; |
| 1208 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1207 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
| 1209 if (allow_new_user) | 1208 if (allow_new_user) |
| 1210 return true; | 1209 return true; |
| 1211 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1210 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
| 1212 } | 1211 } |
| 1213 | 1212 |
| 1214 } // namespace chromeos | 1213 } // namespace chromeos |
| OLD | NEW |