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

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: Created 8 years, 3 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 ::switches::kRendererStartupDialog, 782 ::switches::kRendererStartupDialog,
783 ::switches::kFlingTapSuppressMaxDown, 783 ::switches::kFlingTapSuppressMaxDown,
784 ::switches::kFlingTapSuppressMaxGap, 784 ::switches::kFlingTapSuppressMaxGap,
785 ::switches::kTouchDevices, 785 ::switches::kTouchDevices,
786 ::switches::kTouchOptimizedUI, 786 ::switches::kTouchOptimizedUI,
787 ::switches::kOldCheckboxStyle, 787 ::switches::kOldCheckboxStyle,
788 ash::switches::kAshTouchHud, 788 ash::switches::kAshTouchHud,
789 ash::switches::kAshWindowAnimationsDisabled, 789 ash::switches::kAshWindowAnimationsDisabled,
790 ash::switches::kAuraLegacyPowerButton, 790 ash::switches::kAuraLegacyPowerButton,
791 ash::switches::kAuraNoShadows, 791 ash::switches::kAuraNoShadows,
792 ash::switches::kAshNotifyDisabled,
793 ::switches::kUIEnablePartialSwap, 792 ::switches::kUIEnablePartialSwap,
794 ::switches::kUIPrioritizeInGpuProcess, 793 ::switches::kUIPrioritizeInGpuProcess,
795 #if defined(USE_CRAS) 794 #if defined(USE_CRAS)
796 ::switches::kUseCras, 795 ::switches::kUseCras,
797 #endif 796 #endif
798 ::switches::kUseGL, 797 ::switches::kUseGL,
799 ::switches::kUserDataDir, 798 ::switches::kUserDataDir,
800 chromeos::switches::kDbusStub, 799 chromeos::switches::kDbusStub,
801 }; 800 };
802 command_line->CopySwitchesFrom(base_command_line, 801 command_line->CopySwitchesFrom(base_command_line,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 bool LoginUtils::IsWhitelisted(const std::string& username) { 1214 bool LoginUtils::IsWhitelisted(const std::string& username) {
1216 CrosSettings* cros_settings = CrosSettings::Get(); 1215 CrosSettings* cros_settings = CrosSettings::Get();
1217 bool allow_new_user = false; 1216 bool allow_new_user = false;
1218 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1217 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1219 if (allow_new_user) 1218 if (allow_new_user)
1220 return true; 1219 return true;
1221 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1220 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1222 } 1221 }
1223 1222
1224 } // namespace chromeos 1223 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698