Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/session/user_session_manager.h" | 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" | 50 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" |
| 51 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager_factory.h" | 51 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager_factory.h" |
| 52 #include "chrome/browser/chromeos/login/signin/token_handle_fetcher.h" | 52 #include "chrome/browser/chromeos/login/signin/token_handle_fetcher.h" |
| 53 #include "chrome/browser/chromeos/login/startup_utils.h" | 53 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 54 #include "chrome/browser/chromeos/login/ui/input_events_blocker.h" | 54 #include "chrome/browser/chromeos/login/ui/input_events_blocker.h" |
| 55 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 55 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| 56 #include "chrome/browser/chromeos/login/user_flow.h" | 56 #include "chrome/browser/chromeos/login/user_flow.h" |
| 57 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 57 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 58 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" | 58 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
| 59 #include "chrome/browser/chromeos/login/wizard_controller.h" | 59 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 60 #include "chrome/browser/chromeos/net/tether_notification_presenter.h" | |
| 60 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 61 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 61 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 62 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 62 #include "chrome/browser/chromeos/settings/cros_settings.h" | 63 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 63 #include "chrome/browser/component_updater/ev_whitelist_component_installer.h" | 64 #include "chrome/browser/component_updater/ev_whitelist_component_installer.h" |
| 64 #include "chrome/browser/component_updater/sth_set_component_installer.h" | 65 #include "chrome/browser/component_updater/sth_set_component_installer.h" |
| 65 #include "chrome/browser/cryptauth/chrome_cryptauth_service_factory.h" | 66 #include "chrome/browser/cryptauth/chrome_cryptauth_service_factory.h" |
| 66 #include "chrome/browser/first_run/first_run.h" | 67 #include "chrome/browser/first_run/first_run.h" |
| 67 #include "chrome/browser/google/google_brand_chromeos.h" | 68 #include "chrome/browser/google/google_brand_chromeos.h" |
| 68 #include "chrome/browser/lifetime/application_lifetime.h" | 69 #include "chrome/browser/lifetime/application_lifetime.h" |
| 69 #include "chrome/browser/net/crl_set_fetcher.h" | 70 #include "chrome/browser/net/crl_set_fetcher.h" |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1248 InitRlz(profile); | 1249 InitRlz(profile); |
| 1249 InitializeCerts(profile); | 1250 InitializeCerts(profile); |
| 1250 InitializeCRLSetFetcher(user); | 1251 InitializeCRLSetFetcher(user); |
| 1251 InitializeCertificateTransparencyComponents(user); | 1252 InitializeCertificateTransparencyComponents(user); |
| 1252 | 1253 |
| 1253 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); | 1254 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |
| 1254 | 1255 |
| 1255 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1256 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1256 chromeos::switches::kEnableTether)) { | 1257 chromeos::switches::kEnableTether)) { |
| 1257 chromeos::tether::Initializer::Initialize( | 1258 chromeos::tether::Initializer::Initialize( |
| 1258 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile)); | 1259 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile), |
| 1260 base::MakeUnique<TetherNotificationPresenter>(), profile->GetPrefs()); | |
|
Ryan Hansberry
2017/04/07 23:08:55
tether::TetherNotificationPresenter
Kyle Horimoto
2017/04/07 23:33:10
Done.
| |
| 1259 } | 1261 } |
| 1260 } | 1262 } |
| 1261 | 1263 |
| 1262 UpdateEasyUnlockKeys(user_context_); | 1264 UpdateEasyUnlockKeys(user_context_); |
| 1263 user_context_.ClearSecrets(); | 1265 user_context_.ClearSecrets(); |
| 1264 if (TokenHandlesEnabled()) { | 1266 if (TokenHandlesEnabled()) { |
| 1265 CreateTokenUtilIfMissing(); | 1267 CreateTokenUtilIfMissing(); |
| 1266 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { | 1268 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { |
| 1267 if (!token_handle_fetcher_.get()) { | 1269 if (!token_handle_fetcher_.get()) { |
| 1268 token_handle_fetcher_.reset(new TokenHandleFetcher( | 1270 token_handle_fetcher_.reset(new TokenHandleFetcher( |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1970 ->browser_policy_connector_chromeos() | 1972 ->browser_policy_connector_chromeos() |
| 1971 ->IsEnterpriseManaged()) { | 1973 ->IsEnterpriseManaged()) { |
| 1972 return false; | 1974 return false; |
| 1973 } | 1975 } |
| 1974 | 1976 |
| 1975 // Do not show end of life notification if this is a guest session | 1977 // Do not show end of life notification if this is a guest session |
| 1976 return !profile->IsGuestSession(); | 1978 return !profile->IsGuestSession(); |
| 1977 } | 1979 } |
| 1978 | 1980 |
| 1979 } // namespace chromeos | 1981 } // namespace chromeos |
| OLD | NEW |