DescriptionFix ComponentLoader unit tests on cros_trunk
Some ComponentLoader unit_tests are crashing on official chromeos bot
in IsNormalSession() due to uninitialized user manager.
This is hit when loading quickoffice component extension, which is
guarded with #if defined(GOOGLE_CHROME_BUILD), thus it's seen only on
official builds.
This makes sure that UserManager is initialized before checking
if a user is logged in.
Example trace:
#0 0x00000b44302e base::debug::StackTrace::StackTrace()
#1 0x00000b442c6c base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x0000f776f410 ([vdso]+0x40f)
#3 0x00000d702745 user_manager::UserManager::Get()
#4 0x00000e4c4bec extensions::ComponentLoader::EnableFileSystemInGuestMode()
#5 0x00000e4c5811 extensions::ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages()
#6 0x00000e4c523e extensions::ComponentLoader::AddDefaultComponentExtensions()
#7 0x000008fa03ff extensions::ComponentLoaderTest_LoadAll_Test::TestBody()
BUG=None
Committed: https://crrev.com/ef80df98a25445af7929593e8ab156556165f68a
Cr-Commit-Position: refs/heads/master@{#313122}
Patch Set 1 #Patch Set 2 : . #Messages
Total messages: 11 (2 generated)
|