OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "chrome/common/net/gaia/gaia_constants.h" | 68 #include "chrome/common/net/gaia/gaia_constants.h" |
69 #include "chrome/common/net/gaia/gaia_urls.h" | 69 #include "chrome/common/net/gaia/gaia_urls.h" |
70 #include "chrome/common/pref_names.h" | 70 #include "chrome/common/pref_names.h" |
71 #include "chrome/common/url_constants.h" | 71 #include "chrome/common/url_constants.h" |
72 #include "chromeos/chromeos_switches.h" | 72 #include "chromeos/chromeos_switches.h" |
73 #include "chromeos/dbus/dbus_thread_manager.h" | 73 #include "chromeos/dbus/dbus_thread_manager.h" |
74 #include "chromeos/dbus/session_manager_client.h" | 74 #include "chromeos/dbus/session_manager_client.h" |
75 #include "content/public/browser/browser_thread.h" | 75 #include "content/public/browser/browser_thread.h" |
76 #include "content/public/browser/notification_service.h" | 76 #include "content/public/browser/notification_service.h" |
77 #include "googleurl/src/gurl.h" | 77 #include "googleurl/src/gurl.h" |
| 78 #include "media/base/media_switches.h" |
78 #include "net/base/network_change_notifier.h" | 79 #include "net/base/network_change_notifier.h" |
79 #include "net/cookies/cookie_monster.h" | 80 #include "net/cookies/cookie_monster.h" |
80 #include "net/cookies/cookie_store.h" | 81 #include "net/cookies/cookie_store.h" |
81 #include "net/http/http_auth_cache.h" | 82 #include "net/http/http_auth_cache.h" |
82 #include "net/http/http_network_session.h" | 83 #include "net/http/http_network_session.h" |
83 #include "net/http/http_transaction_factory.h" | 84 #include "net/http/http_transaction_factory.h" |
84 #include "net/url_request/url_request_context.h" | 85 #include "net/url_request/url_request_context.h" |
85 #include "net/url_request/url_request_context_getter.h" | 86 #include "net/url_request/url_request_context_getter.h" |
86 #include "ui/base/ui_base_switches.h" | 87 #include "ui/base/ui_base_switches.h" |
87 #include "ui/compositor/compositor_switches.h" | 88 #include "ui/compositor/compositor_switches.h" |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 ::switches::kFlingTapSuppressMaxDown, | 1078 ::switches::kFlingTapSuppressMaxDown, |
1078 ::switches::kFlingTapSuppressMaxGap, | 1079 ::switches::kFlingTapSuppressMaxGap, |
1079 ::switches::kTouchDevices, | 1080 ::switches::kTouchDevices, |
1080 ::switches::kTouchOptimizedUI, | 1081 ::switches::kTouchOptimizedUI, |
1081 ash::switches::kAshTouchHud, | 1082 ash::switches::kAshTouchHud, |
1082 ash::switches::kAuraLegacyPowerButton, | 1083 ash::switches::kAuraLegacyPowerButton, |
1083 ash::switches::kAuraNoShadows, | 1084 ash::switches::kAuraNoShadows, |
1084 ash::switches::kAuraPanelManager, | 1085 ash::switches::kAuraPanelManager, |
1085 ash::switches::kAuraWindowAnimationsDisabled, | 1086 ash::switches::kAuraWindowAnimationsDisabled, |
1086 ::switches::kUIEnablePartialSwap, | 1087 ::switches::kUIEnablePartialSwap, |
| 1088 #if defined(USE_CRAS) |
| 1089 ::switches::kUseCras, |
| 1090 #endif |
1087 ::switches::kUseGL, | 1091 ::switches::kUseGL, |
1088 ::switches::kUserDataDir, | 1092 ::switches::kUserDataDir, |
1089 chromeos::switches::kDbusStub, | 1093 chromeos::switches::kDbusStub, |
1090 }; | 1094 }; |
1091 command_line->CopySwitchesFrom(base_command_line, | 1095 command_line->CopySwitchesFrom(base_command_line, |
1092 kForwardSwitches, | 1096 kForwardSwitches, |
1093 arraysize(kForwardSwitches)); | 1097 arraysize(kForwardSwitches)); |
1094 command_line->AppendSwitch(::switches::kGuestSession); | 1098 command_line->AppendSwitch(::switches::kGuestSession); |
1095 command_line->AppendSwitch(::switches::kIncognito); | 1099 command_line->AppendSwitch(::switches::kIncognito); |
1096 command_line->AppendSwitchASCII(::switches::kLoggingLevel, | 1100 command_line->AppendSwitchASCII(::switches::kLoggingLevel, |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1458 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1455 CrosSettings* cros_settings = CrosSettings::Get(); | 1459 CrosSettings* cros_settings = CrosSettings::Get(); |
1456 bool allow_new_user = false; | 1460 bool allow_new_user = false; |
1457 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1461 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1458 if (allow_new_user) | 1462 if (allow_new_user) |
1459 return true; | 1463 return true; |
1460 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1464 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1461 } | 1465 } |
1462 | 1466 |
1463 } // namespace chromeos | 1467 } // namespace chromeos |
OLD | NEW |