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

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

Issue 11348353: Simplify pinch flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 ::switches::kUseCras, 813 ::switches::kUseCras,
814 #endif 814 #endif
815 ::switches::kUseGL, 815 ::switches::kUseGL,
816 ::switches::kUserDataDir, 816 ::switches::kUserDataDir,
817 ash::switches::kAshTouchHud, 817 ash::switches::kAshTouchHud,
818 ash::switches::kAuraLegacyPowerButton, 818 ash::switches::kAuraLegacyPowerButton,
819 ash::switches::kAuraNoShadows, 819 ash::switches::kAuraNoShadows,
820 ash::switches::kAshDisablePanelFitting, 820 ash::switches::kAshDisablePanelFitting,
821 cc::switches::kDisableThreadedAnimation, 821 cc::switches::kDisableThreadedAnimation,
822 cc::switches::kEnablePartialSwap, 822 cc::switches::kEnablePartialSwap,
823 cc::switches::kEnablePinchInCompositor,
824 chromeos::switches::kDbusStub, 823 chromeos::switches::kDbusStub,
825 chromeos::switches::kEnableNewNetworkHandlers, 824 chromeos::switches::kEnableNewNetworkHandlers,
826 gfx::switches::kEnableBrowserTextSubpixelPositioning, 825 gfx::switches::kEnableBrowserTextSubpixelPositioning,
827 gfx::switches::kEnableWebkitTextSubpixelPositioning, 826 gfx::switches::kEnableWebkitTextSubpixelPositioning,
828 views::corewm::switches::kWindowAnimationsDisabled, 827 views::corewm::switches::kWindowAnimationsDisabled,
829 }; 828 };
830 command_line->CopySwitchesFrom(base_command_line, 829 command_line->CopySwitchesFrom(base_command_line,
831 kForwardSwitches, 830 kForwardSwitches,
832 arraysize(kForwardSwitches)); 831 arraysize(kForwardSwitches));
833 command_line->AppendSwitch(::switches::kGuestSession); 832 command_line->AppendSwitch(::switches::kGuestSession);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 bool LoginUtils::IsWhitelisted(const std::string& username) { 1249 bool LoginUtils::IsWhitelisted(const std::string& username) {
1251 CrosSettings* cros_settings = CrosSettings::Get(); 1250 CrosSettings* cros_settings = CrosSettings::Get();
1252 bool allow_new_user = false; 1251 bool allow_new_user = false;
1253 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1252 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1254 if (allow_new_user) 1253 if (allow_new_user)
1255 return true; 1254 return true;
1256 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1255 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1257 } 1256 }
1258 1257
1259 } // namespace chromeos 1258 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698