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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2821103003: Remove the configuration of Tether-associated Wi-Fi networks once connectivity is lost. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1253 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1254 chromeos::switches::kEnableTether)) { 1254 chromeos::switches::kEnableTether)) {
1255 auto notification_presenter = 1255 auto notification_presenter =
1256 base::MakeUnique<tether::TetherNotificationPresenter>( 1256 base::MakeUnique<tether::TetherNotificationPresenter>(
1257 message_center::MessageCenter::Get(), NetworkConnect::Get()); 1257 message_center::MessageCenter::Get(), NetworkConnect::Get());
1258 chromeos::tether::Initializer::Init( 1258 chromeos::tether::Initializer::Init(
1259 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile), 1259 ChromeCryptAuthServiceFactory::GetForBrowserContext(profile),
1260 std::move(notification_presenter), profile->GetPrefs(), 1260 std::move(notification_presenter), profile->GetPrefs(),
1261 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), 1261 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
1262 NetworkHandler::Get()->network_state_handler(), 1262 NetworkHandler::Get()->network_state_handler(),
1263 NetworkHandler::Get()->managed_network_configuration_handler(),
1263 NetworkConnect::Get()); 1264 NetworkConnect::Get());
1264 } 1265 }
1265 } 1266 }
1266 1267
1267 UpdateEasyUnlockKeys(user_context_); 1268 UpdateEasyUnlockKeys(user_context_);
1268 user_context_.ClearSecrets(); 1269 user_context_.ClearSecrets();
1269 if (TokenHandlesEnabled()) { 1270 if (TokenHandlesEnabled()) {
1270 CreateTokenUtilIfMissing(); 1271 CreateTokenUtilIfMissing();
1271 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { 1272 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) {
1272 if (!token_handle_fetcher_.get()) { 1273 if (!token_handle_fetcher_.get()) {
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 ->browser_policy_connector_chromeos() 1972 ->browser_policy_connector_chromeos()
1972 ->IsEnterpriseManaged()) { 1973 ->IsEnterpriseManaged()) {
1973 return false; 1974 return false;
1974 } 1975 }
1975 1976
1976 // 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
1977 return !profile->IsGuestSession(); 1978 return !profile->IsGuestSession();
1978 } 1979 }
1979 1980
1980 } // namespace chromeos 1981 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698