| 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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1234 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1235 chromeos::switches::kEnableTether)) { | 1235 chromeos::switches::kEnableTether)) { |
| 1236 auto notification_presenter = | 1236 auto notification_presenter = |
| 1237 base::MakeUnique<tether::TetherNotificationPresenter>( | 1237 base::MakeUnique<tether::TetherNotificationPresenter>( |
| 1238 message_center::MessageCenter::Get(), NetworkConnect::Get()); | 1238 message_center::MessageCenter::Get(), NetworkConnect::Get()); |
| 1239 chromeos::tether::Initializer::Init( | 1239 chromeos::tether::Initializer::Init( |
| 1240 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile), | 1240 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile), |
| 1241 std::move(notification_presenter), profile->GetPrefs(), | 1241 std::move(notification_presenter), profile->GetPrefs(), |
| 1242 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), | 1242 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
| 1243 NetworkHandler::Get()->network_state_handler(), | 1243 NetworkHandler::Get()->network_state_handler(), |
| 1244 NetworkHandler::Get()->managed_network_configuration_handler(), |
| 1244 NetworkConnect::Get()); | 1245 NetworkConnect::Get()); |
| 1245 } | 1246 } |
| 1246 } | 1247 } |
| 1247 | 1248 |
| 1248 UpdateEasyUnlockKeys(user_context_); | 1249 UpdateEasyUnlockKeys(user_context_); |
| 1249 user_context_.ClearSecrets(); | 1250 user_context_.ClearSecrets(); |
| 1250 if (TokenHandlesEnabled()) { | 1251 if (TokenHandlesEnabled()) { |
| 1251 CreateTokenUtilIfMissing(); | 1252 CreateTokenUtilIfMissing(); |
| 1252 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { | 1253 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { |
| 1253 if (!token_handle_fetcher_.get()) { | 1254 if (!token_handle_fetcher_.get()) { |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1952 ->browser_policy_connector_chromeos() | 1953 ->browser_policy_connector_chromeos() |
| 1953 ->IsEnterpriseManaged()) { | 1954 ->IsEnterpriseManaged()) { |
| 1954 return false; | 1955 return false; |
| 1955 } | 1956 } |
| 1956 | 1957 |
| 1957 // Do not show end of life notification if this is a guest session | 1958 // Do not show end of life notification if this is a guest session |
| 1958 return !profile->IsGuestSession(); | 1959 return !profile->IsGuestSession(); |
| 1959 } | 1960 } |
| 1960 | 1961 |
| 1961 } // namespace chromeos | 1962 } // namespace chromeos |
| OLD | NEW |