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

Issue 2555673002: Worker: Refine pending activity management on InProcessWorkerMessagingProxy (Closed)

Created:
4 years ago by nhiroki
Modified:
4 years ago
Reviewers:
falken
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: Refine pending activity management on InProcessWorkerMessagingProxy This CL... (1) renames m_workerGlobalScopeMayHavePendingActivities to m_workerGlobalScopeHasPendingActivities. InProcessWorkerMessagingProxy cannot know the exact current state of pending activities on the worker context because it's in a separate thread, so the field name contained 'may'. This would be confusing and pointless from caller's point of view. (2) stops checking m_unconfirmedMessageCount in hasPendingActivity() in favor of m_workerGlobalScopeHasPendingActivities. When the count is greater than 0, m_workerGlobalScopeHasPendingActivities should be true. (3) removes workerGlobalScopeMayHavePendingActivity() from InProcessWorkerMessagingProxyForTest because it's the same with hasPendingActivity() after (2). Note that this CL does not change behavior. BUG=655089 Committed: https://crrev.com/9d2e15b7c11d53baa8226bad662b26663838e035 Cr-Commit-Position: refs/heads/master@{#436549}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -59 lines) Patch
M third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp View 7 chunks +19 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h View 3 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 4 chunks +10 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (16 generated)
nhiroki
PTAL. This CL is inspired from https://codereview.chromium.org/2553973002/#msg6
4 years ago (2016-12-06 06:32:12 UTC) #9
falken
lgtm. Thanks this is a bit clearer. Add "This patch does not change behavior" in ...
4 years ago (2016-12-06 06:51:54 UTC) #10
nhiroki
On 2016/12/06 06:51:54, falken wrote: > lgtm. Thanks this is a bit clearer. Add "This ...
4 years ago (2016-12-06 06:59:07 UTC) #12
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/2555673002/20001
4 years ago (2016-12-06 07:07:30 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/348461)
4 years ago (2016-12-06 07:24:45 UTC) #17
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/2555673002/20001
4 years ago (2016-12-06 08:07:40 UTC) #19
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years ago (2016-12-06 09:16:24 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-06 09:19:49 UTC) #24
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9d2e15b7c11d53baa8226bad662b26663838e035
Cr-Commit-Position: refs/heads/master@{#436549}

Powered by Google App Engine
This is Rietveld 408576698