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

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

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 2 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 ::switches::kRendererStartupDialog, 784 ::switches::kRendererStartupDialog,
785 ::switches::kFlingTapSuppressMaxDown, 785 ::switches::kFlingTapSuppressMaxDown,
786 ::switches::kFlingTapSuppressMaxGap, 786 ::switches::kFlingTapSuppressMaxGap,
787 ::switches::kTouchDevices, 787 ::switches::kTouchDevices,
788 ::switches::kTouchOptimizedUI, 788 ::switches::kTouchOptimizedUI,
789 ::switches::kOldCheckboxStyle, 789 ::switches::kOldCheckboxStyle,
790 ash::switches::kAshTouchHud, 790 ash::switches::kAshTouchHud,
791 ash::switches::kAshWindowAnimationsDisabled, 791 ash::switches::kAshWindowAnimationsDisabled,
792 ash::switches::kAuraLegacyPowerButton, 792 ash::switches::kAuraLegacyPowerButton,
793 ash::switches::kAuraNoShadows, 793 ash::switches::kAuraNoShadows,
794 ash::switches::kAshNotifyDisabled,
795 ::switches::kUIEnablePartialSwap, 794 ::switches::kUIEnablePartialSwap,
796 ::switches::kUIPrioritizeInGpuProcess, 795 ::switches::kUIPrioritizeInGpuProcess,
797 #if defined(USE_CRAS) 796 #if defined(USE_CRAS)
798 ::switches::kUseCras, 797 ::switches::kUseCras,
799 #endif 798 #endif
800 ::switches::kUseGL, 799 ::switches::kUseGL,
801 ::switches::kUserDataDir, 800 ::switches::kUserDataDir,
802 chromeos::switches::kDbusStub, 801 chromeos::switches::kDbusStub,
803 }; 802 };
804 command_line->CopySwitchesFrom(base_command_line, 803 command_line->CopySwitchesFrom(base_command_line,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 bool LoginUtils::IsWhitelisted(const std::string& username) { 1216 bool LoginUtils::IsWhitelisted(const std::string& username) {
1218 CrosSettings* cros_settings = CrosSettings::Get(); 1217 CrosSettings* cros_settings = CrosSettings::Get();
1219 bool allow_new_user = false; 1218 bool allow_new_user = false;
1220 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1219 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1221 if (allow_new_user) 1220 if (allow_new_user)
1222 return true; 1221 return true;
1223 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1222 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1224 } 1223 }
1225 1224
1226 } // namespace chromeos 1225 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.cc ('k') | chrome/browser/chromeos/network_message_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698