New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 832232 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Startup task is using objects on UI thread in background thread.

Project Member Reported by romax@chromium.org, Apr 12 2018

Issue description

The ArchiveManager and Policy Controller are created on UI thread, and it's not safe to call their methods directly on background thread.
It should be implemented as copying the information needed and bind in order to use then on a background thread.

Check this for all tasks.
 

Comment 1 by romax@chromium.org, Apr 25 2018

Status: Started (was: Assigned)
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 25 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ee07658e8d02146594fa9e3fad7b12e6d6c403dc

commit ee07658e8d02146594fa9e3fad7b12e6d6c403dc
Author: Yafei Duan <romax@chromium.org>
Date: Wed Apr 25 21:03:56 2018

[Offline Pages] Fix objects on UI thread being used in background thread

As dewittj@ pointed out, in StartupMaintenanceTask some raw pointers to
the objects on UI thread are being used in background thread, which is
unsafe. This CL fixes the issue by making copy of objects on UI thread
and bind them before hopping to background thread.

Fortunately other tasks didn't have the wrong implementation.

Bug:  832232 
Change-Id: Ia8913ba6036b9c2ce357d53857f968fe1629c03d
Reviewed-on: https://chromium-review.googlesource.com/1027130
Commit-Queue: Yafei Duan <romax@chromium.org>
Reviewed-by: Justin DeWitt <dewittj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553743}
[modify] https://crrev.com/ee07658e8d02146594fa9e3fad7b12e6d6c403dc/components/offline_pages/core/model/startup_maintenance_task.cc

Comment 3 by romax@chromium.org, Apr 25 2018

Status: Fixed (was: Started)

Sign in to add a comment