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

Issue 2639153004: Worker: Stop accessing ExecutionContext passed by ExecutionContextTask (Closed)

Created:
3 years, 11 months ago by nhiroki
Modified:
3 years, 11 months ago
Reviewers:
tzik
CC:
chromium-reviews, shimazu+worker_chromium.org, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Stop accessing ExecutionContext passed by ExecutionContextTask This is a part of the project to deprecate ExecutionContextTask. InProcessWorkerMessaginProxy passes ExecutionContext to InProcessWorkerObjectProxy via ExecutionContextTask. This is a barrier to deprecate ExecutionContextTask. The messaging proxy should pass it in a different way. After this CL, the messaging proxy passes a pointer to WorkerThread and the object proxy accesses ExecutionContext via WorkerThread. Consequently, ExecutionContext passed by ExecutionContextTask is no longer necessary. BUG=625927 Review-Url: https://codereview.chromium.org/2639153004 Cr-Commit-Position: refs/heads/master@{#444729} Committed: https://chromium.googlesource.com/chromium/src/+/d377f2d2230bc9302eca1f725e919b3b6a4305f1

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix test crashes #

Total comments: 2

Patch Set 3 : address review comments #

Messages

Total messages: 22 (15 generated)
nhiroki
PTAL, thanks!
3 years, 11 months ago (2017-01-19 09:33:45 UTC) #6
nhiroki
https://codereview.chromium.org/2639153004/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2639153004/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode143 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:143: WTF::passed(std::move(channels)), crossThreadUnretained(workerThread())); Hmmm... this workerThread() can be nullptr and ...
3 years, 11 months ago (2017-01-19 10:05:52 UTC) #9
nhiroki
https://codereview.chromium.org/2639153004/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2639153004/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode143 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:143: WTF::passed(std::move(channels)), crossThreadUnretained(workerThread())); On 2017/01/19 10:05:52, nhiroki wrote: > Hmmm... ...
3 years, 11 months ago (2017-01-19 10:37:23 UTC) #12
tzik
lgtm https://codereview.chromium.org/2639153004/diff/20001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h (right): https://codereview.chromium.org/2639153004/diff/20001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h#newcode105 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h:105: QueuedTask(PassRefPtr<SerializedScriptValue> message, Can we use RefPtr instead of ...
3 years, 11 months ago (2017-01-19 11:41:03 UTC) #13
nhiroki
Thank you. https://codereview.chromium.org/2639153004/diff/20001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h (right): https://codereview.chromium.org/2639153004/diff/20001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h#newcode105 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h:105: QueuedTask(PassRefPtr<SerializedScriptValue> message, On 2017/01/19 11:41:03, tzik wrote: ...
3 years, 11 months ago (2017-01-19 12:34:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2639153004/40001
3 years, 11 months ago (2017-01-19 12:35:57 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 14:41:47 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d377f2d2230bc9302eca1f725e91...

Powered by Google App Engine
This is Rietveld 408576698