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

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

Issue 10546158: Remove --default-device-scale-factor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/aura/monitor_manager.h » ('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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str); 705 job_restart_request_ = new JobRestartRequest(getpid(), cmd_line_str);
706 } 706 }
707 707
708 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( 708 std::string LoginUtilsImpl::GetOffTheRecordCommandLine(
709 const GURL& start_url, 709 const GURL& start_url,
710 const CommandLine& base_command_line, 710 const CommandLine& base_command_line,
711 CommandLine* command_line) { 711 CommandLine* command_line) {
712 static const char* kForwardSwitches[] = { 712 static const char* kForwardSwitches[] = {
713 ::switches::kCompressSystemFeedback, 713 ::switches::kCompressSystemFeedback,
714 ::switches::kDeviceManagementUrl, 714 ::switches::kDeviceManagementUrl,
715 ::switches::kDefaultDeviceScaleFactor, 715 ::switches::kForceDeviceScaleFactor,
716 ::switches::kDisableAccelerated2dCanvas, 716 ::switches::kDisableAccelerated2dCanvas,
717 ::switches::kDisableAcceleratedPlugins, 717 ::switches::kDisableAcceleratedPlugins,
718 ::switches::kDisableGpuWatchdog, 718 ::switches::kDisableGpuWatchdog,
719 ::switches::kDisableLoginAnimations, 719 ::switches::kDisableLoginAnimations,
720 ::switches::kDisableSeccompFilterSandbox, 720 ::switches::kDisableSeccompFilterSandbox,
721 ::switches::kDisableSeccompSandbox, 721 ::switches::kDisableSeccompSandbox,
722 ::switches::kDisableThreadedAnimation, 722 ::switches::kDisableThreadedAnimation,
723 ::switches::kEnableDevicePolicy, 723 ::switches::kEnableDevicePolicy,
724 ::switches::kEnableGView, 724 ::switches::kEnableGView,
725 ::switches::kEnableLogging, 725 ::switches::kEnableLogging,
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 bool LoginUtils::IsWhitelisted(const std::string& username) { 1111 bool LoginUtils::IsWhitelisted(const std::string& username) {
1112 CrosSettings* cros_settings = CrosSettings::Get(); 1112 CrosSettings* cros_settings = CrosSettings::Get();
1113 bool allow_new_user = false; 1113 bool allow_new_user = false;
1114 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1114 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1115 if (allow_new_user) 1115 if (allow_new_user)
1116 return true; 1116 return true;
1117 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1117 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1118 } 1118 }
1119 1119
1120 } // namespace chromeos 1120 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | ui/aura/monitor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698