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

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

Issue 9078005: Remove almost all remaining TOUCH_UIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another clean rebase Created 8 years, 11 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 | « no previous file | chrome/browser/extensions/extension_input_api.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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 switches::kEnableGView, 977 switches::kEnableGView,
978 switches::kEnableSensors, 978 switches::kEnableSensors,
979 switches::kNoFirstRun, 979 switches::kNoFirstRun,
980 switches::kLoginProfile, 980 switches::kLoginProfile,
981 switches::kCompressSystemFeedback, 981 switches::kCompressSystemFeedback,
982 switches::kDisableSeccompSandbox, 982 switches::kDisableSeccompSandbox,
983 switches::kPpapiFlashInProcess, 983 switches::kPpapiFlashInProcess,
984 switches::kPpapiFlashPath, 984 switches::kPpapiFlashPath,
985 switches::kPpapiFlashVersion, 985 switches::kPpapiFlashVersion,
986 switches::kTouchDevices, 986 switches::kTouchDevices,
987 #if defined(TOUCH_UI) 987 #if defined(USE_VIRTUAL_KEYBOARD)
988 // The virtual keyboard extension for TOUCH_UI (chrome://keyboard) highly 988 // The virtual keyboard extension (chrome://keyboard) highly relies on
989 // relies on experimental APIs. 989 // experimental APIs.
990 switches::kEnableExperimentalExtensionApis, 990 switches::kEnableExperimentalExtensionApis,
991 #endif 991 #endif
992 }; 992 };
993 command_line->CopySwitchesFrom(base_command_line, 993 command_line->CopySwitchesFrom(base_command_line,
994 kForwardSwitches, 994 kForwardSwitches,
995 arraysize(kForwardSwitches)); 995 arraysize(kForwardSwitches));
996 command_line->AppendSwitch(switches::kGuestSession); 996 command_line->AppendSwitch(switches::kGuestSession);
997 command_line->AppendSwitch(switches::kIncognito); 997 command_line->AppendSwitch(switches::kIncognito);
998 command_line->AppendSwitchASCII(switches::kLoggingLevel, 998 command_line->AppendSwitchASCII(switches::kLoggingLevel,
999 kGuestModeLoggingLevel); 999 kGuestModeLoggingLevel);
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 bool LoginUtils::IsWhitelisted(const std::string& username) { 1349 bool LoginUtils::IsWhitelisted(const std::string& username) {
1350 CrosSettings* cros_settings = CrosSettings::Get(); 1350 CrosSettings* cros_settings = CrosSettings::Get();
1351 bool allow_new_user = false; 1351 bool allow_new_user = false;
1352 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1352 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1353 if (allow_new_user) 1353 if (allow_new_user)
1354 return true; 1354 return true;
1355 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1355 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1356 } 1356 }
1357 1357
1358 } // namespace chromeos 1358 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698