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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 67 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
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/dbus/dbus_thread_manager.h" | 72 #include "chromeos/dbus/dbus_thread_manager.h" |
73 #include "chromeos/dbus/session_manager_client.h" | 73 #include "chromeos/dbus/session_manager_client.h" |
74 #include "content/public/browser/browser_thread.h" | 74 #include "content/public/browser/browser_thread.h" |
75 #include "content/public/browser/notification_service.h" | 75 #include "content/public/browser/notification_service.h" |
76 #include "googleurl/src/gurl.h" | 76 #include "googleurl/src/gurl.h" |
| 77 #include "media/base/media_switches.h" |
77 #include "net/base/network_change_notifier.h" | 78 #include "net/base/network_change_notifier.h" |
78 #include "net/cookies/cookie_monster.h" | 79 #include "net/cookies/cookie_monster.h" |
79 #include "net/cookies/cookie_store.h" | 80 #include "net/cookies/cookie_store.h" |
80 #include "net/http/http_auth_cache.h" | 81 #include "net/http/http_auth_cache.h" |
81 #include "net/http/http_network_session.h" | 82 #include "net/http/http_network_session.h" |
82 #include "net/http/http_transaction_factory.h" | 83 #include "net/http/http_transaction_factory.h" |
83 #include "net/url_request/url_request_context.h" | 84 #include "net/url_request/url_request_context.h" |
84 #include "net/url_request/url_request_context_getter.h" | 85 #include "net/url_request/url_request_context_getter.h" |
85 #include "ui/base/ui_base_switches.h" | 86 #include "ui/base/ui_base_switches.h" |
86 #include "ui/compositor/compositor_switches.h" | 87 #include "ui/compositor/compositor_switches.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 switches::kFlingTapSuppressMaxDown, | 1074 switches::kFlingTapSuppressMaxDown, |
1074 switches::kFlingTapSuppressMaxGap, | 1075 switches::kFlingTapSuppressMaxGap, |
1075 switches::kTouchDevices, | 1076 switches::kTouchDevices, |
1076 switches::kTouchOptimizedUI, | 1077 switches::kTouchOptimizedUI, |
1077 ash::switches::kAuraLegacyPowerButton, | 1078 ash::switches::kAuraLegacyPowerButton, |
1078 ash::switches::kAuraNoShadows, | 1079 ash::switches::kAuraNoShadows, |
1079 ash::switches::kAuraPanelManager, | 1080 ash::switches::kAuraPanelManager, |
1080 ash::switches::kAuraWindowAnimationsDisabled, | 1081 ash::switches::kAuraWindowAnimationsDisabled, |
1081 switches::kUIEnablePartialSwap, | 1082 switches::kUIEnablePartialSwap, |
1082 switches::kUIUseGPUProcess, | 1083 switches::kUIUseGPUProcess, |
| 1084 #if defined(USE_CRAS) |
| 1085 switches::kUseCras, |
| 1086 #endif |
1083 switches::kUseGL, | 1087 switches::kUseGL, |
1084 switches::kUserDataDir, | 1088 switches::kUserDataDir, |
1085 #if defined(USE_VIRTUAL_KEYBOARD) | 1089 #if defined(USE_VIRTUAL_KEYBOARD) |
1086 // The virtual keyboard extension (chrome://keyboard) highly relies on | 1090 // The virtual keyboard extension (chrome://keyboard) highly relies on |
1087 // experimental APIs. | 1091 // experimental APIs. |
1088 switches::kEnableExperimentalExtensionApis, | 1092 switches::kEnableExperimentalExtensionApis, |
1089 #endif | 1093 #endif |
1090 }; | 1094 }; |
1091 command_line->CopySwitchesFrom(base_command_line, | 1095 command_line->CopySwitchesFrom(base_command_line, |
1092 kForwardSwitches, | 1096 kForwardSwitches, |
(...skipping 361 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 |