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

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

Issue 10855244: Remove the --enable-device-policy and --enable-onc-policy flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment Created 8 years, 3 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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 ::switches::kDisableAccelerated2dCanvas, 751 ::switches::kDisableAccelerated2dCanvas,
752 ::switches::kDisableAcceleratedPlugins, 752 ::switches::kDisableAcceleratedPlugins,
753 ::switches::kDisableAcceleratedVideoDecode, 753 ::switches::kDisableAcceleratedVideoDecode,
754 ::switches::kDisableGpuWatchdog, 754 ::switches::kDisableGpuWatchdog,
755 ::switches::kDisableLoginAnimations, 755 ::switches::kDisableLoginAnimations,
756 ::switches::kDisableOobeAnimation, 756 ::switches::kDisableOobeAnimation,
757 ::switches::kDisableSeccompFilterSandbox, 757 ::switches::kDisableSeccompFilterSandbox,
758 ::switches::kDisableSeccompSandbox, 758 ::switches::kDisableSeccompSandbox,
759 ::switches::kDisableThreadedAnimation, 759 ::switches::kDisableThreadedAnimation,
760 ::switches::kEnableCompositingForFixedPosition, 760 ::switches::kEnableCompositingForFixedPosition,
761 ::switches::kEnableDevicePolicy,
762 ::switches::kEnableGView, 761 ::switches::kEnableGView,
763 ::switches::kEnableHighDPIPDFPlugin, 762 ::switches::kEnableHighDPIPDFPlugin,
764 ::switches::kEnableLogging, 763 ::switches::kEnableLogging,
765 ::switches::kEnablePartialSwap, 764 ::switches::kEnablePartialSwap,
766 ::switches::kEnableUIReleaseFrontSurface, 765 ::switches::kEnableUIReleaseFrontSurface,
767 ::switches::kEnablePinch, 766 ::switches::kEnablePinch,
768 ::switches::kEnableSmoothScrolling, 767 ::switches::kEnableSmoothScrolling,
769 ::switches::kEnableThreadedCompositing, 768 ::switches::kEnableThreadedCompositing,
770 ::switches::kEnableTouchEvents, 769 ::switches::kEnableTouchEvents,
771 ::switches::kEnableViewport, 770 ::switches::kEnableViewport,
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 bool LoginUtils::IsWhitelisted(const std::string& username) { 1204 bool LoginUtils::IsWhitelisted(const std::string& username) {
1206 CrosSettings* cros_settings = CrosSettings::Get(); 1205 CrosSettings* cros_settings = CrosSettings::Get();
1207 bool allow_new_user = false; 1206 bool allow_new_user = false;
1208 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1207 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1209 if (allow_new_user) 1208 if (allow_new_user)
1210 return true; 1209 return true;
1211 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1210 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1212 } 1211 }
1213 1212
1214 } // namespace chromeos 1213 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698