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

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

Issue 11346028: Allow Caps Lock to be remapped [part 2 of 2] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 1 month 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/resources/options/chromeos/keyboard_overlay.html » ('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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 ::switches::kEnableUIReleaseFrontSurface, 765 ::switches::kEnableUIReleaseFrontSurface,
766 ::switches::kEnablePinch, 766 ::switches::kEnablePinch,
767 ::switches::kEnableGestureTapHighlight, 767 ::switches::kEnableGestureTapHighlight,
768 ::switches::kEnableSmoothScrolling, 768 ::switches::kEnableSmoothScrolling,
769 ::switches::kEnableThreadedCompositing, 769 ::switches::kEnableThreadedCompositing,
770 ::switches::kEnableViewport, 770 ::switches::kEnableViewport,
771 ::switches::kEnableWebkitTextSubpixelPositioning, 771 ::switches::kEnableWebkitTextSubpixelPositioning,
772 ::switches::kDisableThreadedCompositing, 772 ::switches::kDisableThreadedCompositing,
773 ::switches::kForceCompositingMode, 773 ::switches::kForceCompositingMode,
774 ::switches::kGpuStartupDialog, 774 ::switches::kGpuStartupDialog,
775 ::switches::kHasChromeOSKeyboard,
775 ::switches::kLoginProfile, 776 ::switches::kLoginProfile,
776 ::switches::kScrollPixels, 777 ::switches::kScrollPixels,
777 ::switches::kNaturalScrollDefault, 778 ::switches::kNaturalScrollDefault,
778 ::switches::kNoFirstRun, 779 ::switches::kNoFirstRun,
779 ::switches::kNoSandbox, 780 ::switches::kNoSandbox,
780 ::switches::kPpapiFlashArgs, 781 ::switches::kPpapiFlashArgs,
781 ::switches::kPpapiFlashInProcess, 782 ::switches::kPpapiFlashInProcess,
782 ::switches::kPpapiFlashPath, 783 ::switches::kPpapiFlashPath,
783 ::switches::kPpapiFlashVersion, 784 ::switches::kPpapiFlashVersion,
784 ::switches::kRendererStartupDialog, 785 ::switches::kRendererStartupDialog,
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 bool LoginUtils::IsWhitelisted(const std::string& username) { 1229 bool LoginUtils::IsWhitelisted(const std::string& username) {
1229 CrosSettings* cros_settings = CrosSettings::Get(); 1230 CrosSettings* cros_settings = CrosSettings::Get();
1230 bool allow_new_user = false; 1231 bool allow_new_user = false;
1231 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1232 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1232 if (allow_new_user) 1233 if (allow_new_user)
1233 return true; 1234 return true;
1234 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1235 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1235 } 1236 }
1236 1237
1237 } // namespace chromeos 1238 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos/keyboard_overlay.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698