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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index 16e2bffea06a38b4ca0ab103d6c460abbb47cf6a..393adae0057ef0f4dcea04474170d718b18657db 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -1225,7 +1225,9 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) {
arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile);
- TetherService::Get(profile)->StartTetherIfEnabled();
+ TetherService* tether_service = TetherService::Get(profile);
+ if (tether_service)
+ tether_service->StartTetherIfEnabled();
}
UpdateEasyUnlockKeys(user_context_);
« 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