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

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

Issue 2900903002: Create a FakeTetherService, which stubs out TetherService for development. (Closed)
Patch Set: Fix TetherService tests. Created 3 years, 7 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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 const user_manager::User* user = 1218 const user_manager::User* user =
1219 ProfileHelper::Get()->GetUserByProfile(profile); 1219 ProfileHelper::Get()->GetUserByProfile(profile);
1220 if (user_manager->GetPrimaryUser() == user) { 1220 if (user_manager->GetPrimaryUser() == user) {
1221 InitRlz(profile); 1221 InitRlz(profile);
1222 InitializeCerts(profile); 1222 InitializeCerts(profile);
1223 InitializeCRLSetFetcher(user); 1223 InitializeCRLSetFetcher(user);
1224 InitializeCertificateTransparencyComponents(user); 1224 InitializeCertificateTransparencyComponents(user);
1225 1225
1226 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); 1226 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile);
1227 1227
1228 TetherService::Get(profile)->StartTetherIfEnabled(); 1228 TetherService* tether_service = TetherService::Get(profile);
1229 if (tether_service)
1230 tether_service->StartTetherIfEnabled();
1229 } 1231 }
1230 1232
1231 UpdateEasyUnlockKeys(user_context_); 1233 UpdateEasyUnlockKeys(user_context_);
1232 user_context_.ClearSecrets(); 1234 user_context_.ClearSecrets();
1233 if (TokenHandlesEnabled()) { 1235 if (TokenHandlesEnabled()) {
1234 CreateTokenUtilIfMissing(); 1236 CreateTokenUtilIfMissing();
1235 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { 1237 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) {
1236 if (!token_handle_fetcher_.get()) { 1238 if (!token_handle_fetcher_.get()) {
1237 token_handle_fetcher_.reset(new TokenHandleFetcher( 1239 token_handle_fetcher_.reset(new TokenHandleFetcher(
1238 token_handle_util_.get(), user->GetAccountId())); 1240 token_handle_util_.get(), user->GetAccountId()));
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 ->browser_policy_connector_chromeos() 1941 ->browser_policy_connector_chromeos()
1940 ->IsEnterpriseManaged()) { 1942 ->IsEnterpriseManaged()) {
1941 return false; 1943 return false;
1942 } 1944 }
1943 1945
1944 // Do not show end of life notification if this is a guest session 1946 // Do not show end of life notification if this is a guest session
1945 return !profile->IsGuestSession(); 1947 return !profile->IsGuestSession();
1946 } 1948 }
1947 1949
1948 } // namespace chromeos 1950 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/session/chrome_session_manager.cc ('k') | chrome/browser/chromeos/tether/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698