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

Issue 991763002: Remove unnecessary add/removeObserver lifetime notifier indirections. (Closed)

Created:
5 years, 9 months ago by sof
Modified:
5 years, 9 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove unnecessary add/removeObserver lifetime notifier indirections. With LifetimeNotifier<T,O>::{add,remove}Observer(O*) now being type accurate & safe, we can simply expose these as public and avoid having to define&declare forwarding versions. Unless the overriding is needed (e.g., ContextLifecycleNotifier::addObserver().) R=haraken BUG=462949 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191537

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -48 lines) Patch
M Source/core/dom/ContextLifecycleNotifier.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ContextLifecycleNotifier.cpp View 1 chunk +0 lines, -5 lines 2 comments Download
M Source/core/dom/DocumentLifecycleNotifier.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentLifecycleNotifier.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/core/frame/DOMWindowLifecycleNotifier.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/frame/DOMWindowLifecycleNotifier.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/core/page/PageLifecycleNotifier.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/page/PageLifecycleNotifier.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/platform/LifecycleNotifier.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sof
please take a look.
5 years, 9 months ago (2015-03-09 09:39:40 UTC) #2
haraken
LGTM https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp File Source/core/dom/ContextLifecycleNotifier.cpp (right): https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp#newcode41 Source/core/dom/ContextLifecycleNotifier.cpp:41: void ContextLifecycleNotifier::addObserver(ContextLifecycleObserver* observer) Do we still need this?
5 years, 9 months ago (2015-03-09 10:47:45 UTC) #3
sof
https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp File Source/core/dom/ContextLifecycleNotifier.cpp (right): https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp#newcode41 Source/core/dom/ContextLifecycleNotifier.cpp:41: void ContextLifecycleNotifier::addObserver(ContextLifecycleObserver* observer) On 2015/03/09 10:47:45, haraken wrote: > ...
5 years, 9 months ago (2015-03-09 10:51:45 UTC) #4
haraken
On 2015/03/09 10:51:45, sof wrote: > https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp > File Source/core/dom/ContextLifecycleNotifier.cpp (right): > > https://codereview.chromium.org/991763002/diff/1/Source/core/dom/ContextLifecycleNotifier.cpp#newcode41 > ...
5 years, 9 months ago (2015-03-09 10:55:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/991763002/1
5 years, 9 months ago (2015-03-09 11:44:27 UTC) #7
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 11:47:16 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191537

Powered by Google App Engine
This is Rietveld 408576698