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

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

Issue 11359184: ui/gfx: Create a new gfx switches file to put gfx specific switches there. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "net/base/network_change_notifier.h" 82 #include "net/base/network_change_notifier.h"
83 #include "net/cookies/cookie_monster.h" 83 #include "net/cookies/cookie_monster.h"
84 #include "net/cookies/cookie_store.h" 84 #include "net/cookies/cookie_store.h"
85 #include "net/http/http_auth_cache.h" 85 #include "net/http/http_auth_cache.h"
86 #include "net/http/http_network_session.h" 86 #include "net/http/http_network_session.h"
87 #include "net/http/http_transaction_factory.h" 87 #include "net/http/http_transaction_factory.h"
88 #include "net/url_request/url_request_context.h" 88 #include "net/url_request/url_request_context.h"
89 #include "net/url_request/url_request_context_getter.h" 89 #include "net/url_request/url_request_context_getter.h"
90 #include "ui/base/ui_base_switches.h" 90 #include "ui/base/ui_base_switches.h"
91 #include "ui/compositor/compositor_switches.h" 91 #include "ui/compositor/compositor_switches.h"
92 #include "ui/gfx/switches.h"
92 #include "ui/gl/gl_switches.h" 93 #include "ui/gl/gl_switches.h"
93 #include "webkit/plugins/plugin_switches.h" 94 #include "webkit/plugins/plugin_switches.h"
94 95
95 using content::BrowserThread; 96 using content::BrowserThread;
96 97
97 namespace chromeos { 98 namespace chromeos {
98 99
99 namespace { 100 namespace {
100 101
101 // Affixes for Auth token received from ClientLogin request. 102 // Affixes for Auth token received from ClientLogin request.
(...skipping 648 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::kEnableBrowserTextSubpixelPositioning,
761 ::switches::kEnableCompositingForFixedPosition, 761 ::switches::kEnableCompositingForFixedPosition,
762 ::switches::kEnableEncryptedMedia, 762 ::switches::kEnableEncryptedMedia,
763 ::switches::kEnableGView, 763 ::switches::kEnableGView,
764 ::switches::kEnableLogging, 764 ::switches::kEnableLogging,
765 ::switches::kEnableUIReleaseFrontSurface, 765 ::switches::kEnableUIReleaseFrontSurface,
766 ::switches::kEnablePinch, 766 ::switches::kEnablePinch,
767 ::switches::kEnableGestureTapHighlight, 767 ::switches::kEnableGestureTapHighlight,
768 ::switches::kEnableSmoothScrolling, 768 ::switches::kEnableSmoothScrolling,
769 ::switches::kEnableThreadedCompositing, 769 ::switches::kEnableThreadedCompositing,
770 ::switches::kEnableViewport, 770 ::switches::kEnableViewport,
771 ::switches::kEnableWebkitTextSubpixelPositioning,
772 ::switches::kDisableThreadedCompositing, 771 ::switches::kDisableThreadedCompositing,
773 ::switches::kForceCompositingMode, 772 ::switches::kForceCompositingMode,
774 ::switches::kGpuStartupDialog, 773 ::switches::kGpuStartupDialog,
775 ::switches::kHasChromeOSKeyboard, 774 ::switches::kHasChromeOSKeyboard,
776 ::switches::kLoginProfile, 775 ::switches::kLoginProfile,
777 ::switches::kScrollPixels, 776 ::switches::kScrollPixels,
778 ::switches::kNaturalScrollDefault, 777 ::switches::kNaturalScrollDefault,
779 ::switches::kNoFirstRun, 778 ::switches::kNoFirstRun,
780 ::switches::kNoSandbox, 779 ::switches::kNoSandbox,
781 ::switches::kPpapiFlashArgs, 780 ::switches::kPpapiFlashArgs,
782 ::switches::kPpapiFlashInProcess, 781 ::switches::kPpapiFlashInProcess,
783 ::switches::kPpapiFlashPath, 782 ::switches::kPpapiFlashPath,
784 ::switches::kPpapiFlashVersion, 783 ::switches::kPpapiFlashVersion,
785 ::switches::kRendererStartupDialog, 784 ::switches::kRendererStartupDialog,
786 ::switches::kFlingTapSuppressMaxDown, 785 ::switches::kFlingTapSuppressMaxDown,
787 ::switches::kFlingTapSuppressMaxGap, 786 ::switches::kFlingTapSuppressMaxGap,
788 #if defined(USE_XI2_MT) 787 #if defined(USE_XI2_MT)
789 ::switches::kTouchCalibration, 788 ::switches::kTouchCalibration,
790 #endif 789 #endif
791 ::switches::kTouchDevices, 790 ::switches::kTouchDevices,
792 ::switches::kTouchOptimizedUI, 791 ::switches::kTouchOptimizedUI,
793 ::switches::kOldCheckboxStyle, 792 ::switches::kOldCheckboxStyle,
794 ash::switches::kAshTouchHud,
795 ash::switches::kAshWindowAnimationsDisabled,
796 ash::switches::kAuraLegacyPowerButton,
797 ash::switches::kAuraNoShadows,
798 ash::switches::kAshDisablePanelFitting,
799 cc::switches::kDisableThreadedAnimation,
800 cc::switches::kEnablePartialSwap,
801 cc::switches::kEnablePinchInCompositor,
802 ::switches::kUIEnablePartialSwap, 793 ::switches::kUIEnablePartialSwap,
803 ::switches::kUIEnableThreadedCompositing, 794 ::switches::kUIEnableThreadedCompositing,
804 ::switches::kUIPrioritizeInGpuProcess, 795 ::switches::kUIPrioritizeInGpuProcess,
805 #if defined(USE_CRAS) 796 #if defined(USE_CRAS)
806 ::switches::kUseCras, 797 ::switches::kUseCras,
807 #endif 798 #endif
808 ::switches::kUseGL, 799 ::switches::kUseGL,
809 ::switches::kUserDataDir, 800 ::switches::kUserDataDir,
801 ash::switches::kAshTouchHud,
802 ash::switches::kAshWindowAnimationsDisabled,
803 ash::switches::kAuraLegacyPowerButton,
804 ash::switches::kAuraNoShadows,
805 ash::switches::kAshDisablePanelFitting,
806 cc::switches::kDisableThreadedAnimation,
807 cc::switches::kEnablePartialSwap,
808 cc::switches::kEnablePinchInCompositor,
810 chromeos::switches::kDbusStub, 809 chromeos::switches::kDbusStub,
810 gfx::switches::kEnableBrowserTextSubpixelPositioning,
811 gfx::switches::kEnableWebkitTextSubpixelPositioning,
811 }; 812 };
812 command_line->CopySwitchesFrom(base_command_line, 813 command_line->CopySwitchesFrom(base_command_line,
813 kForwardSwitches, 814 kForwardSwitches,
814 arraysize(kForwardSwitches)); 815 arraysize(kForwardSwitches));
815 command_line->AppendSwitch(::switches::kGuestSession); 816 command_line->AppendSwitch(::switches::kGuestSession);
816 command_line->AppendSwitch(::switches::kIncognito); 817 command_line->AppendSwitch(::switches::kIncognito);
817 command_line->AppendSwitchASCII(::switches::kLoggingLevel, 818 command_line->AppendSwitchASCII(::switches::kLoggingLevel,
818 kGuestModeLoggingLevel); 819 kGuestModeLoggingLevel);
819 820
820 command_line->AppendSwitchASCII(::switches::kLoginUser, kGuestUserName); 821 command_line->AppendSwitchASCII(::switches::kLoginUser, kGuestUserName);
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 bool LoginUtils::IsWhitelisted(const std::string& username) { 1234 bool LoginUtils::IsWhitelisted(const std::string& username) {
1234 CrosSettings* cros_settings = CrosSettings::Get(); 1235 CrosSettings* cros_settings = CrosSettings::Get();
1235 bool allow_new_user = false; 1236 bool allow_new_user = false;
1236 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1237 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1237 if (allow_new_user) 1238 if (allow_new_user)
1238 return true; 1239 return true;
1239 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1240 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1240 } 1241 }
1241 1242
1242 } // namespace chromeos 1243 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/base/ui_base_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698