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

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

Issue 9580024: ash uber tray: Allow customizing each item depending on whether the user is logged in or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing file Created 8 years, 9 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 <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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 switches::kForceCompositingMode, 997 switches::kForceCompositingMode,
998 switches::kLoginProfile, 998 switches::kLoginProfile,
999 switches::kScrollPixels, 999 switches::kScrollPixels,
1000 switches::kNoFirstRun, 1000 switches::kNoFirstRun,
1001 switches::kPpapiFlashArgs, 1001 switches::kPpapiFlashArgs,
1002 switches::kPpapiFlashInProcess, 1002 switches::kPpapiFlashInProcess,
1003 switches::kPpapiFlashPath, 1003 switches::kPpapiFlashPath,
1004 switches::kPpapiFlashVersion, 1004 switches::kPpapiFlashVersion,
1005 switches::kTouchDevices, 1005 switches::kTouchDevices,
1006 #if defined(USE_AURA) 1006 #if defined(USE_AURA)
1007 ash::switches::kAshUberTray,
1007 ash::switches::kAuraForceCompactWindowMode, 1008 ash::switches::kAuraForceCompactWindowMode,
1008 ash::switches::kAuraLegacyPowerButton, 1009 ash::switches::kAuraLegacyPowerButton,
1009 ash::switches::kAuraNoShadows, 1010 ash::switches::kAuraNoShadows,
1010 ash::switches::kAuraPanelManager, 1011 ash::switches::kAuraPanelManager,
1011 ash::switches::kAuraWindowAnimationsDisabled, 1012 ash::switches::kAuraWindowAnimationsDisabled,
1012 switches::kUIEnablePartialSwap, 1013 switches::kUIEnablePartialSwap,
1013 switches::kUIUseGPUProcess, 1014 switches::kUIUseGPUProcess,
1014 #endif 1015 #endif
1015 switches::kUseGL, 1016 switches::kUseGL,
1016 switches::kUserDataDir, 1017 switches::kUserDataDir,
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 bool LoginUtils::IsWhitelisted(const std::string& username) { 1403 bool LoginUtils::IsWhitelisted(const std::string& username) {
1403 CrosSettings* cros_settings = CrosSettings::Get(); 1404 CrosSettings* cros_settings = CrosSettings::Get();
1404 bool allow_new_user = false; 1405 bool allow_new_user = false;
1405 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1406 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1406 if (allow_new_user) 1407 if (allow_new_user)
1407 return true; 1408 return true;
1408 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1409 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1409 } 1410 }
1410 1411
1411 } // namespace chromeos 1412 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698