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

Issue 874483005: Fix ComponentLoader unit tests on cros_trunk (Closed)

Created:
5 years, 11 months ago by tbarzic
Modified:
5 years, 11 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/extensions/component_loader.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
tbarzic
Let me know if you'd prefer to add "&& user_manager::UserManager::Get()" here: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/extensions/component_loader.cc&l=94 btw. failing builder: ...
5 years, 11 months ago (2015-01-23 20:03:56 UTC) #2
asargent_no_longer_on_chrome
Yeah, I think a better fix is to just add the null user manager check ...
5 years, 11 months ago (2015-01-23 23:23:09 UTC) #3
tbarzic
OK, done with checking that user manager is initialized in IsNormalSession.
5 years, 11 months ago (2015-01-24 00:06:34 UTC) #4
asargent_no_longer_on_chrome
lgtm
5 years, 11 months ago (2015-01-24 00:26:33 UTC) #5
Dmitry Polukhin
LGTM Alternative solution could be initializing user manager in these tests. But I'm fine with ...
5 years, 11 months ago (2015-01-26 07:54:54 UTC) #6
tbarzic
On 2015/01/26 07:54:54, Dmitry Polukhin wrote: > LGTM > > Alternative solution could be initializing ...
5 years, 11 months ago (2015-01-26 19:33:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874483005/20001
5 years, 11 months ago (2015-01-26 19:34:51 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-26 20:36:38 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 20:37:32 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ef80df98a25445af7929593e8ab156556165f68a
Cr-Commit-Position: refs/heads/master@{#313122}

Powered by Google App Engine
This is Rietveld 408576698