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

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

Issue 10805070: Flip HW video decode from being behind an "enable" flag to being behind a "disable" flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 const GURL& start_url, 728 const GURL& start_url,
729 const CommandLine& base_command_line, 729 const CommandLine& base_command_line,
730 CommandLine* command_line) { 730 CommandLine* command_line) {
731 static const char* kForwardSwitches[] = { 731 static const char* kForwardSwitches[] = {
732 ::switches::kAllowWebUICompositing, 732 ::switches::kAllowWebUICompositing,
733 ::switches::kCompressSystemFeedback, 733 ::switches::kCompressSystemFeedback,
734 ::switches::kDeviceManagementUrl, 734 ::switches::kDeviceManagementUrl,
735 ::switches::kForceDeviceScaleFactor, 735 ::switches::kForceDeviceScaleFactor,
736 ::switches::kDisableAccelerated2dCanvas, 736 ::switches::kDisableAccelerated2dCanvas,
737 ::switches::kDisableAcceleratedPlugins, 737 ::switches::kDisableAcceleratedPlugins,
738 ::switches::kDisableAcceleratedVideoDecode,
738 ::switches::kDisableGpuWatchdog, 739 ::switches::kDisableGpuWatchdog,
739 ::switches::kDisableLoginAnimations, 740 ::switches::kDisableLoginAnimations,
740 ::switches::kDisableSeccompFilterSandbox, 741 ::switches::kDisableSeccompFilterSandbox,
741 ::switches::kDisableSeccompSandbox, 742 ::switches::kDisableSeccompSandbox,
742 ::switches::kDisableThreadedAnimation, 743 ::switches::kDisableThreadedAnimation,
743 ::switches::kEnableAcceleratedVideoDecode,
744 ::switches::kEnableDevicePolicy, 744 ::switches::kEnableDevicePolicy,
745 ::switches::kEnableGView, 745 ::switches::kEnableGView,
746 ::switches::kEnableLogging, 746 ::switches::kEnableLogging,
747 ::switches::kEnableMobileSetupDialog, 747 ::switches::kEnableMobileSetupDialog,
748 ::switches::kEnablePartialSwap, 748 ::switches::kEnablePartialSwap,
749 ::switches::kEnablePinch, 749 ::switches::kEnablePinch,
750 ::switches::kEnableSmoothScrolling, 750 ::switches::kEnableSmoothScrolling,
751 ::switches::kEnableThreadedCompositing, 751 ::switches::kEnableThreadedCompositing,
752 ::switches::kEnableTouchEvents, 752 ::switches::kEnableTouchEvents,
753 ::switches::kEnableViewport, 753 ::switches::kEnableViewport,
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 bool LoginUtils::IsWhitelisted(const std::string& username) { 1188 bool LoginUtils::IsWhitelisted(const std::string& username) {
1189 CrosSettings* cros_settings = CrosSettings::Get(); 1189 CrosSettings* cros_settings = CrosSettings::Get();
1190 bool allow_new_user = false; 1190 bool allow_new_user = false;
1191 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1191 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1192 if (allow_new_user) 1192 if (allow_new_user)
1193 return true; 1193 return true;
1194 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1194 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1195 } 1195 }
1196 1196
1197 } // namespace chromeos 1197 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698