commit | 588611ac26084199b4e293c17dfe47e19c4a3b24 | [log] [tgz] |
---|---|---|
author | Yuta Kitamura <yutak@chromium.org> | Wed Aug 01 08:54:02 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 01 08:54:02 2018 |
tree | d043846ca3efed49372c165d3b3c8f1f847bc3ea | |
parent | 6b0ccefa4f747d6570ef241119be7da4a0ca1d47 [diff] |
Pass main thread WebThread to Platform::Initialize(). The main thread's WebThread is currently owned by each embedder, but we plan to have it owned by Platform and eventually stop exposing WebThread to non-Blink directories. Currently, Platform::CurrentThread() is used for two purposes: (1) to obtain the pointer to the main thread WebThread object, and (2) to return the current thread's WebThread object in thread-local storage. This patch gets rid of (1) and move it to Platform::Initialize()'s argument, so we can easily shift the ownership of WebThread in the future. TBR=eroman@chromium.org,kinuko@chromium.org,dalecurtis@chromium.org,jcivelli@chromium.org Bug: 826203 Change-Id: I93608b13f6b84a47112865da486647afc46ab039 Reviewed-on: https://chromium-review.googlesource.com/1154854 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Commit-Queue: Yuta Kitamura <yutak@chromium.org> Cr-Commit-Position: refs/heads/master@{#579733}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .