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

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

Issue 10459016: Disable accelerated animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just switch enable/disable. Don't rename flag. Created 8 years, 6 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 static const char* kForwardSwitches[] = { 1046 static const char* kForwardSwitches[] = {
1047 ::switches::kCompressSystemFeedback, 1047 ::switches::kCompressSystemFeedback,
1048 ::switches::kDeviceManagementUrl, 1048 ::switches::kDeviceManagementUrl,
1049 ::switches::kDefaultDeviceScaleFactor, 1049 ::switches::kDefaultDeviceScaleFactor,
1050 ::switches::kDisableAccelerated2dCanvas, 1050 ::switches::kDisableAccelerated2dCanvas,
1051 ::switches::kDisableAcceleratedPlugins, 1051 ::switches::kDisableAcceleratedPlugins,
1052 ::switches::kDisableGpuWatchdog, 1052 ::switches::kDisableGpuWatchdog,
1053 ::switches::kDisableLoginAnimations, 1053 ::switches::kDisableLoginAnimations,
1054 ::switches::kDisableSeccompFilterSandbox, 1054 ::switches::kDisableSeccompFilterSandbox,
1055 ::switches::kDisableSeccompSandbox, 1055 ::switches::kDisableSeccompSandbox,
1056 ::switches::kDisableThreadedAnimation, 1056 ::switches::kEnableThreadedAnimation,
1057 ::switches::kEnableDevicePolicy, 1057 ::switches::kEnableDevicePolicy,
1058 ::switches::kEnableGView, 1058 ::switches::kEnableGView,
1059 ::switches::kEnableLogging, 1059 ::switches::kEnableLogging,
1060 ::switches::kEnablePartialSwap, 1060 ::switches::kEnablePartialSwap,
1061 ::switches::kEnablePinch, 1061 ::switches::kEnablePinch,
1062 ::switches::kEnableSmoothScrolling, 1062 ::switches::kEnableSmoothScrolling,
1063 ::switches::kEnableThreadedCompositing, 1063 ::switches::kEnableThreadedCompositing,
1064 ::switches::kEnableTouchEvents, 1064 ::switches::kEnableTouchEvents,
1065 ::switches::kEnableViewport, 1065 ::switches::kEnableViewport,
1066 ::switches::kDisableThreadedCompositing, 1066 ::switches::kDisableThreadedCompositing,
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 bool LoginUtils::IsWhitelisted(const std::string& username) { 1458 bool LoginUtils::IsWhitelisted(const std::string& username) {
1459 CrosSettings* cros_settings = CrosSettings::Get(); 1459 CrosSettings* cros_settings = CrosSettings::Get();
1460 bool allow_new_user = false; 1460 bool allow_new_user = false;
1461 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1461 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1462 if (allow_new_user) 1462 if (allow_new_user)
1463 return true; 1463 return true;
1464 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1464 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1465 } 1465 }
1466 1466
1467 } // namespace chromeos 1467 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698