Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 11186039: Move CC switches to cc/switches.h. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed nits and made ui/ depend on ui/gfx/ Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 ::switches::kDeviceManagementUrl, 751 ::switches::kDeviceManagementUrl,
751 ::switches::kForceDeviceScaleFactor, 752 ::switches::kForceDeviceScaleFactor,
752 ::switches::kDisableAccelerated2dCanvas, 753 ::switches::kDisableAccelerated2dCanvas,
753 ::switches::kDisableAcceleratedPlugins, 754 ::switches::kDisableAcceleratedPlugins,
754 ::switches::kDisableAcceleratedVideoDecode, 755 ::switches::kDisableAcceleratedVideoDecode,
755 ::switches::kDisableGpuWatchdog, 756 ::switches::kDisableGpuWatchdog,
756 ::switches::kDisableLoginAnimations, 757 ::switches::kDisableLoginAnimations,
757 ::switches::kDisableOobeAnimation, 758 ::switches::kDisableOobeAnimation,
758 ::switches::kDisableSeccompFilterSandbox, 759 ::switches::kDisableSeccompFilterSandbox,
759 ::switches::kDisableSeccompSandbox, 760 ::switches::kDisableSeccompSandbox,
760 ::switches::kDisableThreadedAnimation,
761 ::switches::kEnableBrowserTextSubpixelPositioning, 761 ::switches::kEnableBrowserTextSubpixelPositioning,
762 ::switches::kEnableCompositingForFixedPosition, 762 ::switches::kEnableCompositingForFixedPosition,
763 ::switches::kEnableGView, 763 ::switches::kEnableGView,
764 ::switches::kEnableLogging, 764 ::switches::kEnableLogging,
765 ::switches::kEnablePartialSwap,
766 ::switches::kEnableUIReleaseFrontSurface, 765 ::switches::kEnableUIReleaseFrontSurface,
767 ::switches::kEnablePinch, 766 ::switches::kEnablePinch,
768 ::switches::kEnableGestureTapHighlight, 767 ::switches::kEnableGestureTapHighlight,
769 ::switches::kEnableSmoothScrolling, 768 ::switches::kEnableSmoothScrolling,
770 ::switches::kEnableThreadedCompositing, 769 ::switches::kEnableThreadedCompositing,
771 ::switches::kEnableTouchCalibration, 770 ::switches::kEnableTouchCalibration,
772 ::switches::kEnableViewport, 771 ::switches::kEnableViewport,
773 ::switches::kEnableWebkitTextSubpixelPositioning, 772 ::switches::kEnableWebkitTextSubpixelPositioning,
774 ::switches::kDisableThreadedCompositing, 773 ::switches::kDisableThreadedCompositing,
775 ::switches::kForceCompositingMode, 774 ::switches::kForceCompositingMode,
(...skipping 10 matching lines...) Expand all
786 ::switches::kFlingTapSuppressMaxDown, 785 ::switches::kFlingTapSuppressMaxDown,
787 ::switches::kFlingTapSuppressMaxGap, 786 ::switches::kFlingTapSuppressMaxGap,
788 ::switches::kTouchDevices, 787 ::switches::kTouchDevices,
789 ::switches::kTouchOptimizedUI, 788 ::switches::kTouchOptimizedUI,
790 ::switches::kOldCheckboxStyle, 789 ::switches::kOldCheckboxStyle,
791 ash::switches::kAshTouchHud, 790 ash::switches::kAshTouchHud,
792 ash::switches::kAshWindowAnimationsDisabled, 791 ash::switches::kAshWindowAnimationsDisabled,
793 ash::switches::kAuraLegacyPowerButton, 792 ash::switches::kAuraLegacyPowerButton,
794 ash::switches::kAuraNoShadows, 793 ash::switches::kAuraNoShadows,
795 ash::switches::kAshDisablePanelFitting, 794 ash::switches::kAshDisablePanelFitting,
795 cc::switches::kDisableThreadedAnimation,
796 cc::switches::kEnablePartialSwap,
797 cc::switches::kEnablePinchInCompositor,
796 ::switches::kUIEnablePartialSwap, 798 ::switches::kUIEnablePartialSwap,
797 ::switches::kUIPrioritizeInGpuProcess, 799 ::switches::kUIPrioritizeInGpuProcess,
798 #if defined(USE_CRAS) 800 #if defined(USE_CRAS)
799 ::switches::kUseCras, 801 ::switches::kUseCras,
800 #endif 802 #endif
801 ::switches::kUseGL, 803 ::switches::kUseGL,
802 ::switches::kUserDataDir, 804 ::switches::kUserDataDir,
803 chromeos::switches::kDbusStub, 805 chromeos::switches::kDbusStub,
804 }; 806 };
805 command_line->CopySwitchesFrom(base_command_line, 807 command_line->CopySwitchesFrom(base_command_line,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 bool LoginUtils::IsWhitelisted(const std::string& username) { 1221 bool LoginUtils::IsWhitelisted(const std::string& username) {
1220 CrosSettings* cros_settings = CrosSettings::Get(); 1222 CrosSettings* cros_settings = CrosSettings::Get();
1221 bool allow_new_user = false; 1223 bool allow_new_user = false;
1222 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1224 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1223 if (allow_new_user) 1225 if (allow_new_user)
1224 return true; 1226 return true;
1225 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1227 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1226 } 1228 }
1227 1229
1228 } // namespace chromeos 1230 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698