| 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" | 
| 11 #include "base/chromeos/chromeos_version.h" | 11 #include "base/chromeos/chromeos_version.h" | 
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" | 
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" | 
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" | 
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" | 
| 16 #include "base/location.h" | 16 #include "base/location.h" | 
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" | 
| 18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" | 
| 19 #include "base/memory/singleton.h" | 19 #include "base/memory/singleton.h" | 
| 20 #include "base/path_service.h" | 20 #include "base/path_service.h" | 
| 21 #include "base/string_util.h" | 21 #include "base/string_util.h" | 
| 22 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" | 
| 23 #include "base/synchronization/lock.h" | 23 #include "base/synchronization/lock.h" | 
| 24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" | 
| 25 #include "base/time.h" | 25 #include "base/time.h" | 
| 26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" | 
|  | 27 #include "cc/switches.h" | 
| 27 #include "chrome/browser/api/prefs/pref_member.h" | 28 #include "chrome/browser/api/prefs/pref_member.h" | 
| 28 #include "chrome/browser/browser_process.h" | 29 #include "chrome/browser/browser_process.h" | 
| 29 #include "chrome/browser/browser_shutdown.h" | 30 #include "chrome/browser/browser_shutdown.h" | 
| 30 #include "chrome/browser/chromeos/boot_times_loader.h" | 31 #include "chrome/browser/chromeos/boot_times_loader.h" | 
| 31 #include "chrome/browser/chromeos/cros/cert_library.h" | 32 #include "chrome/browser/chromeos/cros/cert_library.h" | 
| 32 #include "chrome/browser/chromeos/cros/cros_library.h" | 33 #include "chrome/browser/chromeos/cros/cros_library.h" | 
| 33 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 34 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 
| 34 #include "chrome/browser/chromeos/cros/network_library.h" | 35 #include "chrome/browser/chromeos/cros/network_library.h" | 
| 35 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 36 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 
| 36 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 37 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 749       ::switches::kDeviceManagementUrl, | 750       ::switches::kDeviceManagementUrl, | 
| 750       ::switches::kForceDeviceScaleFactor, | 751       ::switches::kForceDeviceScaleFactor, | 
| 751       ::switches::kDisableAccelerated2dCanvas, | 752       ::switches::kDisableAccelerated2dCanvas, | 
| 752       ::switches::kDisableAcceleratedPlugins, | 753       ::switches::kDisableAcceleratedPlugins, | 
| 753       ::switches::kDisableAcceleratedVideoDecode, | 754       ::switches::kDisableAcceleratedVideoDecode, | 
| 754       ::switches::kDisableGpuWatchdog, | 755       ::switches::kDisableGpuWatchdog, | 
| 755       ::switches::kDisableLoginAnimations, | 756       ::switches::kDisableLoginAnimations, | 
| 756       ::switches::kDisableOobeAnimation, | 757       ::switches::kDisableOobeAnimation, | 
| 757       ::switches::kDisableSeccompFilterSandbox, | 758       ::switches::kDisableSeccompFilterSandbox, | 
| 758       ::switches::kDisableSeccompSandbox, | 759       ::switches::kDisableSeccompSandbox, | 
| 759       ::switches::kDisableThreadedAnimation, |  | 
| 760       ::switches::kEnableBrowserTextSubpixelPositioning, | 760       ::switches::kEnableBrowserTextSubpixelPositioning, | 
| 761       ::switches::kEnableCompositingForFixedPosition, | 761       ::switches::kEnableCompositingForFixedPosition, | 
| 762       ::switches::kEnableGView, | 762       ::switches::kEnableGView, | 
| 763       ::switches::kEnableLogging, | 763       ::switches::kEnableLogging, | 
| 764       ::switches::kEnablePartialSwap, |  | 
| 765       ::switches::kEnableUIReleaseFrontSurface, | 764       ::switches::kEnableUIReleaseFrontSurface, | 
| 766       ::switches::kEnablePinch, | 765       ::switches::kEnablePinch, | 
| 767       ::switches::kEnableGestureTapHighlight, | 766       ::switches::kEnableGestureTapHighlight, | 
| 768       ::switches::kEnableSmoothScrolling, | 767       ::switches::kEnableSmoothScrolling, | 
| 769       ::switches::kEnableThreadedCompositing, | 768       ::switches::kEnableThreadedCompositing, | 
| 770       ::switches::kEnableTouchCalibration, | 769       ::switches::kEnableTouchCalibration, | 
| 771       ::switches::kEnableViewport, | 770       ::switches::kEnableViewport, | 
| 772       ::switches::kEnableWebkitTextSubpixelPositioning, | 771       ::switches::kEnableWebkitTextSubpixelPositioning, | 
| 773       ::switches::kDisableThreadedCompositing, | 772       ::switches::kDisableThreadedCompositing, | 
| 774       ::switches::kForceCompositingMode, | 773       ::switches::kForceCompositingMode, | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 785       ::switches::kFlingTapSuppressMaxDown, | 784       ::switches::kFlingTapSuppressMaxDown, | 
| 786       ::switches::kFlingTapSuppressMaxGap, | 785       ::switches::kFlingTapSuppressMaxGap, | 
| 787       ::switches::kTouchDevices, | 786       ::switches::kTouchDevices, | 
| 788       ::switches::kTouchOptimizedUI, | 787       ::switches::kTouchOptimizedUI, | 
| 789       ::switches::kOldCheckboxStyle, | 788       ::switches::kOldCheckboxStyle, | 
| 790       ash::switches::kAshTouchHud, | 789       ash::switches::kAshTouchHud, | 
| 791       ash::switches::kAshWindowAnimationsDisabled, | 790       ash::switches::kAshWindowAnimationsDisabled, | 
| 792       ash::switches::kAuraLegacyPowerButton, | 791       ash::switches::kAuraLegacyPowerButton, | 
| 793       ash::switches::kAuraNoShadows, | 792       ash::switches::kAuraNoShadows, | 
| 794       ash::switches::kAshDisablePanelFitting, | 793       ash::switches::kAshDisablePanelFitting, | 
|  | 794       cc::switches::kDisableThreadedAnimation, | 
|  | 795       cc::switches::kEnablePartialSwap, | 
|  | 796       cc::switches::kEnablePinchInCompositor, | 
| 795       ::switches::kUIEnablePartialSwap, | 797       ::switches::kUIEnablePartialSwap, | 
| 796       ::switches::kUIPrioritizeInGpuProcess, | 798       ::switches::kUIPrioritizeInGpuProcess, | 
| 797 #if defined(USE_CRAS) | 799 #if defined(USE_CRAS) | 
| 798       ::switches::kUseCras, | 800       ::switches::kUseCras, | 
| 799 #endif | 801 #endif | 
| 800       ::switches::kUseGL, | 802       ::switches::kUseGL, | 
| 801       ::switches::kUserDataDir, | 803       ::switches::kUserDataDir, | 
| 802       chromeos::switches::kDbusStub, | 804       chromeos::switches::kDbusStub, | 
| 803   }; | 805   }; | 
| 804   command_line->CopySwitchesFrom(base_command_line, | 806   command_line->CopySwitchesFrom(base_command_line, | 
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1218 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1220 bool LoginUtils::IsWhitelisted(const std::string& username) { | 
| 1219   CrosSettings* cros_settings = CrosSettings::Get(); | 1221   CrosSettings* cros_settings = CrosSettings::Get(); | 
| 1220   bool allow_new_user = false; | 1222   bool allow_new_user = false; | 
| 1221   cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1223   cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 
| 1222   if (allow_new_user) | 1224   if (allow_new_user) | 
| 1223     return true; | 1225     return true; | 
| 1224   return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1226   return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 
| 1225 } | 1227 } | 
| 1226 | 1228 | 
| 1227 }  // namespace chromeos | 1229 }  // namespace chromeos | 
| OLD | NEW | 
|---|