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

Issue 1089003003: Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread (Closed)

Created:
5 years, 8 months ago by dmazzoni
Modified:
5 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, je_julie(Not used), plundblad+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread Adds an interface to ViewsDelegate to get a TaskRunner for a thread that can be used for initialization tasks (implemented using the FILE thread), and passes that TaskRunner to the ATK accessibility initialization code, which currently does I/O on the main thread, causing a perf issue. This change just adds the plumbing to get the TaskRunner there. This will be followed up by this change that actually moves the initialization to the other thread: https://codereview.chromium.org/1028553003/ BUG=468112 Committed: https://crrev.com/b9bfea7758f5fbda076d5873f5cf10a5f44598cf Cr-Commit-Position: refs/heads/master@{#327117}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Renamed to GetTaskRunnerForAuraLinuxAccessibilityInit #

Patch Set 3 : Check views delegate #

Total comments: 2

Patch Set 4 : Add comment about FILE thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -1 line) Patch
M chrome/browser/ui/views/chrome_views_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M ui/accessibility/platform/atk_util_auralinux.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/accessibility/platform/atk_util_auralinux.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_auralinux.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_auralinux.cc View 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/accessibility/native_view_accessibility_auralinux.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/views_delegate.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
dmazzoni
5 years, 8 months ago (2015-04-24 17:44:58 UTC) #2
sky
https://codereview.chromium.org/1089003003/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1089003003/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#newcode394 chrome/browser/ui/views/chrome_views_delegate.cc:394: return content::BrowserThread::GetMessageLoopProxyForThread( Why do we want to run this ...
5 years, 8 months ago (2015-04-24 20:52:29 UTC) #3
dmazzoni
https://codereview.chromium.org/1089003003/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1089003003/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#newcode394 chrome/browser/ui/views/chrome_views_delegate.cc:394: return content::BrowserThread::GetMessageLoopProxyForThread( On 2015/04/24 20:52:28, sky wrote: > Why ...
5 years, 8 months ago (2015-04-24 21:23:43 UTC) #4
sky
LGTM https://codereview.chromium.org/1089003003/diff/40001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1089003003/diff/40001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode395 chrome/browser/ui/views/chrome_views_delegate.cc:395: return content::BrowserThread::GetMessageLoopProxyForThread( Add your comment here about why ...
5 years, 8 months ago (2015-04-27 15:10:15 UTC) #5
dmazzoni
https://codereview.chromium.org/1089003003/diff/40001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1089003003/diff/40001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode395 chrome/browser/ui/views/chrome_views_delegate.cc:395: return content::BrowserThread::GetMessageLoopProxyForThread( On 2015/04/27 15:10:14, sky wrote: > Add ...
5 years, 8 months ago (2015-04-27 19:52:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089003003/60001
5 years, 8 months ago (2015-04-27 19:52:44 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/31620)
5 years, 8 months ago (2015-04-27 20:02:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089003003/60001
5 years, 8 months ago (2015-04-27 20:22:58 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-27 21:12:53 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 21:13:51 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b9bfea7758f5fbda076d5873f5cf10a5f44598cf
Cr-Commit-Position: refs/heads/master@{#327117}

Powered by Google App Engine
This is Rietveld 408576698