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

Issue 2680423006: UseCounter: Introduce UseCounter::Observer for layout tests (Closed)

Created:
3 years, 10 months ago by nhiroki
Modified:
3 years, 10 months ago
Reviewers:
Rick Byers
CC:
chromium-reviews, blink-reviews, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

UseCounter: Introduce UseCounter::Observer for layout tests This is a follow-up CL for [1]. We added some layout tests in the CL. They assume MessagePort and UseCounter share the same IPC channel and their messages are handled in order. However, this assumption will be untrue by MessagePort mojofication[2] and the layout tests will be flaky. To fix this, this CL stops assuming the message order and instead introduces a mechanism to observe UseCounter changes. [1] https://codereview.chromium.org/2586863002/ [2] https://codereview.chromium.org/2422793002/ BUG=376039 Review-Url: https://codereview.chromium.org/2680423006 Cr-Commit-Position: refs/heads/master@{#450241} Committed: https://chromium.googlesource.com/chromium/src/+/452a477ff34a2af79a882b44ccc1939230c9e527

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : instance method #

Messages

Total messages: 30 (22 generated)
nhiroki
Hi, can you review this? Thanks! Context: https://codereview.chromium.org/2658603003/#msg95
3 years, 10 months ago (2017-02-10 12:03:56 UTC) #6
Rick Byers
Interesting. Seems like generally useful infrastructure, thanks! I guess this means that common bugs (UseCounter ...
3 years, 10 months ago (2017-02-11 15:01:52 UTC) #9
nhiroki
Thank you for your comments. Updated. https://codereview.chromium.org/2680423006/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2680423006/diff/20001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1180 third_party/WebKit/Source/core/frame/UseCounter.cpp:1180: HeapHashSet<Member<Observer>> toBeRemoved; On ...
3 years, 10 months ago (2017-02-13 04:35:07 UTC) #17
Rick Byers
LGTM with (optional) nit https://codereview.chromium.org/2680423006/diff/80001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2680423006/diff/80001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1201 third_party/WebKit/Source/core/frame/UseCounter.cpp:1201: void UseCounter::addObserver(Document& document, Observer* observer) ...
3 years, 10 months ago (2017-02-13 20:46:31 UTC) #20
nhiroki
Thank you for reviewing this :) https://codereview.chromium.org/2680423006/diff/80001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2680423006/diff/80001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1201 third_party/WebKit/Source/core/frame/UseCounter.cpp:1201: void UseCounter::addObserver(Document& document, ...
3 years, 10 months ago (2017-02-14 02:03:29 UTC) #21
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/2680423006/100001
3 years, 10 months ago (2017-02-14 02:05:13 UTC) #24
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/2680423006/100001
3 years, 10 months ago (2017-02-14 02:10:11 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 04:20:51 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/452a477ff34a2af79a882b44ccc1...

Powered by Google App Engine
This is Rietveld 408576698