From 1bb5ee3c57ca6b6bbd4b366edf2a05ca36333ca8 Mon Sep 17 00:00:00 2001 From: Joel Hockey Date: Mon, 17 Oct 2022 22:45:20 +0000 Subject: [PATCH] Start GuestOsSessionTracker in UserSessionInitializer Ensure GuestOsSessionTracker is started to capture all VM events. (cherry picked from commit 0e1aa7bf305cb4134fd956abb47c40d3efabc123) Bug: b/253838039 Change-Id: I31bbb94331347e795f22bfb2863139145ef729a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3958457 Commit-Queue: Xiyuan Xia Auto-Submit: Joel Hockey Reviewed-by: Xiyuan Xia Reviewed-by: David Munro Cr-Original-Commit-Position: refs/heads/main@{#1060011} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3962228 Commit-Queue: Joel Hockey Bot-Commit: Rubber Stamper Cr-Commit-Position: refs/branch-heads/5359@{#44} Cr-Branched-From: 27d3765d341b09369006d030f83f582a29eb57ae-refs/heads/main@{#1058933} --- chrome/browser/ash/login/session/user_session_initializer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/browser/ash/login/session/user_session_initializer.cc b/chrome/browser/ash/login/session/user_session_initializer.cc index 0bf6b30609d967..b8e28289e908e0 100644 --- a/chrome/browser/ash/login/session/user_session_initializer.cc +++ b/chrome/browser/ash/login/session/user_session_initializer.cc @@ -23,6 +23,7 @@ #include "chrome/browser/ash/child_accounts/screen_time_controller_factory.h" #include "chrome/browser/ash/crostini/crostini_manager.h" #include "chrome/browser/ash/eche_app/eche_app_manager_factory.h" +#include "chrome/browser/ash/guest_os/guest_os_session_tracker.h" #include "chrome/browser/ash/lock_screen_apps/state_controller.h" #include "chrome/browser/ash/login/startup_utils.h" #include "chrome/browser/ash/phonehub/phone_hub_manager_factory.h" @@ -227,6 +228,7 @@ void UserSessionInitializer::InitializePrimaryProfileServices( } arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); + guest_os::GuestOsSessionTracker::GetForProfile(profile); crostini::CrostiniManager* crostini_manager = crostini::CrostiniManager::GetForProfile(profile);