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

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: Add early out if not compositing. 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/android/content_startup_flags.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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 ::switches::kUseCras, 799 ::switches::kUseCras,
800 #endif 800 #endif
801 ::switches::kUseGL, 801 ::switches::kUseGL,
802 ::switches::kUserDataDir, 802 ::switches::kUserDataDir,
803 ash::switches::kAshTouchHud, 803 ash::switches::kAshTouchHud,
804 ash::switches::kAuraLegacyPowerButton, 804 ash::switches::kAuraLegacyPowerButton,
805 ash::switches::kAuraNoShadows, 805 ash::switches::kAuraNoShadows,
806 ash::switches::kAshDisablePanelFitting, 806 ash::switches::kAshDisablePanelFitting,
807 cc::switches::kDisableThreadedAnimation, 807 cc::switches::kDisableThreadedAnimation,
808 cc::switches::kEnablePartialSwap, 808 cc::switches::kEnablePartialSwap,
809 cc::switches::kEnablePinchInCompositor,
810 chromeos::switches::kDbusStub, 809 chromeos::switches::kDbusStub,
811 chromeos::switches::kEnableNewNetworkHandlers, 810 chromeos::switches::kEnableNewNetworkHandlers,
812 gfx::switches::kEnableBrowserTextSubpixelPositioning, 811 gfx::switches::kEnableBrowserTextSubpixelPositioning,
813 gfx::switches::kEnableWebkitTextSubpixelPositioning, 812 gfx::switches::kEnableWebkitTextSubpixelPositioning,
814 views::corewm::switches::kWindowAnimationsDisabled, 813 views::corewm::switches::kWindowAnimationsDisabled,
815 }; 814 };
816 command_line->CopySwitchesFrom(base_command_line, 815 command_line->CopySwitchesFrom(base_command_line,
817 kForwardSwitches, 816 kForwardSwitches,
818 arraysize(kForwardSwitches)); 817 arraysize(kForwardSwitches));
819 command_line->AppendSwitch(::switches::kGuestSession); 818 command_line->AppendSwitch(::switches::kGuestSession);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 bool LoginUtils::IsWhitelisted(const std::string& username) { 1235 bool LoginUtils::IsWhitelisted(const std::string& username) {
1237 CrosSettings* cros_settings = CrosSettings::Get(); 1236 CrosSettings* cros_settings = CrosSettings::Get();
1238 bool allow_new_user = false; 1237 bool allow_new_user = false;
1239 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1238 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1240 if (allow_new_user) 1239 if (allow_new_user)
1241 return true; 1240 return true;
1242 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1241 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1243 } 1242 }
1244 1243
1245 } // namespace chromeos 1244 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698