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

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

Issue 10837142: Remove --load-2x-resources flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 ::switches::kEnablePartialSwap, 748 ::switches::kEnablePartialSwap,
749 ::switches::kEnableUIReleaseFrontSurface, 749 ::switches::kEnableUIReleaseFrontSurface,
750 ::switches::kEnablePinch, 750 ::switches::kEnablePinch,
751 ::switches::kEnableSmoothScrolling, 751 ::switches::kEnableSmoothScrolling,
752 ::switches::kEnableThreadedCompositing, 752 ::switches::kEnableThreadedCompositing,
753 ::switches::kEnableTouchEvents, 753 ::switches::kEnableTouchEvents,
754 ::switches::kEnableViewport, 754 ::switches::kEnableViewport,
755 ::switches::kDisableThreadedCompositing, 755 ::switches::kDisableThreadedCompositing,
756 ::switches::kForceCompositingMode, 756 ::switches::kForceCompositingMode,
757 ::switches::kGpuStartupDialog, 757 ::switches::kGpuStartupDialog,
758 ::switches::kLoad2xResources,
759 ::switches::kLoginProfile, 758 ::switches::kLoginProfile,
760 ::switches::kScrollPixels, 759 ::switches::kScrollPixels,
761 ::switches::kNoFirstRun, 760 ::switches::kNoFirstRun,
762 ::switches::kNoSandbox, 761 ::switches::kNoSandbox,
763 ::switches::kPpapiFlashArgs, 762 ::switches::kPpapiFlashArgs,
764 ::switches::kPpapiFlashInProcess, 763 ::switches::kPpapiFlashInProcess,
765 ::switches::kPpapiFlashPath, 764 ::switches::kPpapiFlashPath,
766 ::switches::kPpapiFlashVersion, 765 ::switches::kPpapiFlashVersion,
767 ::switches::kRendererStartupDialog, 766 ::switches::kRendererStartupDialog,
768 ::switches::kFlingTapSuppressMaxDown, 767 ::switches::kFlingTapSuppressMaxDown,
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 bool LoginUtils::IsWhitelisted(const std::string& username) { 1188 bool LoginUtils::IsWhitelisted(const std::string& username) {
1190 CrosSettings* cros_settings = CrosSettings::Get(); 1189 CrosSettings* cros_settings = CrosSettings::Get();
1191 bool allow_new_user = false; 1190 bool allow_new_user = false;
1192 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1191 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1193 if (allow_new_user) 1192 if (allow_new_user)
1194 return true; 1193 return true;
1195 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1194 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1196 } 1195 }
1197 1196
1198 } // namespace chromeos 1197 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698