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

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

Issue 11938025: ChromeOS default switches cleanup - switches::kEnableThreadedCompositing and switches::kEnableSmoot… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/gpu/compositor_util.cc » ('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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str); 715 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str);
716 } 716 }
717 717
718 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( 718 std::string LoginUtilsImpl::GetOffTheRecordCommandLine(
719 const GURL& start_url, 719 const GURL& start_url,
720 const CommandLine& base_command_line, 720 const CommandLine& base_command_line,
721 CommandLine* command_line) { 721 CommandLine* command_line) {
722 static const char* kForwardSwitches[] = { 722 static const char* kForwardSwitches[] = {
723 ::switches::kAllowWebUICompositing, 723 ::switches::kAllowWebUICompositing,
724 ::switches::kDeviceManagementUrl, 724 ::switches::kDeviceManagementUrl,
725 ::switches::kForceDeviceScaleFactor,
726 ::switches::kDisableAccelerated2dCanvas, 725 ::switches::kDisableAccelerated2dCanvas,
727 ::switches::kDisableAcceleratedPlugins, 726 ::switches::kDisableAcceleratedPlugins,
728 ::switches::kDisableAcceleratedVideoDecode, 727 ::switches::kDisableAcceleratedVideoDecode,
728 ::switches::kDisableForceCompositingMode,
729 ::switches::kDisableGpuWatchdog, 729 ::switches::kDisableGpuWatchdog,
730 ::switches::kDisableLoginAnimations, 730 ::switches::kDisableLoginAnimations,
731 ::switches::kDisableOobeAnimation, 731 ::switches::kDisableOobeAnimation,
732 ::switches::kDisableThreadedCompositing,
732 ::switches::kDisableSeccompFilterSandbox, 733 ::switches::kDisableSeccompFilterSandbox,
733 ::switches::kDisableSeccompSandbox, 734 ::switches::kDisableSeccompSandbox,
734 ::switches::kEnableAcceleratedOverflowScroll, 735 ::switches::kEnableAcceleratedOverflowScroll,
735 ::switches::kEnableCompositingForFixedPosition, 736 ::switches::kEnableCompositingForFixedPosition,
736 ::switches::kEnableEncryptedMedia, 737 ::switches::kEnableEncryptedMedia,
737 ::switches::kEnableLogging, 738 ::switches::kEnableLogging,
738 ::switches::kEnablePinch, 739 ::switches::kEnablePinch,
739 ::switches::kEnableGestureTapHighlight, 740 ::switches::kEnableGestureTapHighlight,
740 ::switches::kEnableSmoothScrolling,
741 ::switches::kEnableThreadedCompositing,
742 ::switches::kEnableViewport, 741 ::switches::kEnableViewport,
743 ::switches::kDisableThreadedCompositing, 742 ::switches::kForceDeviceScaleFactor,
744 ::switches::kForceCompositingMode,
745 ::switches::kGpuStartupDialog, 743 ::switches::kGpuStartupDialog,
746 ::switches::kHasChromeOSKeyboard, 744 ::switches::kHasChromeOSKeyboard,
747 ::switches::kLoginProfile, 745 ::switches::kLoginProfile,
748 ::switches::kNaturalScrollDefault, 746 ::switches::kNaturalScrollDefault,
749 ::switches::kNoSandbox, 747 ::switches::kNoSandbox,
750 ::switches::kPpapiFlashArgs, 748 ::switches::kPpapiFlashArgs,
751 ::switches::kPpapiFlashInProcess, 749 ::switches::kPpapiFlashInProcess,
752 ::switches::kPpapiFlashPath, 750 ::switches::kPpapiFlashPath,
753 ::switches::kPpapiFlashVersion, 751 ::switches::kPpapiFlashVersion,
754 ::switches::kPpapiOutOfProcess, 752 ::switches::kPpapiOutOfProcess,
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 bool LoginUtils::IsWhitelisted(const std::string& username) { 1037 bool LoginUtils::IsWhitelisted(const std::string& username) {
1040 CrosSettings* cros_settings = CrosSettings::Get(); 1038 CrosSettings* cros_settings = CrosSettings::Get();
1041 bool allow_new_user = false; 1039 bool allow_new_user = false;
1042 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1040 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1043 if (allow_new_user) 1041 if (allow_new_user)
1044 return true; 1042 return true;
1045 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1043 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1046 } 1044 }
1047 1045
1048 } // namespace chromeos 1046 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698