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

Issue 2775113002: Audit use of m_client in WebFrameWidgetImpl and remove null checks. (Closed)

Created:
3 years, 9 months ago by slangley
Modified:
3 years, 8 months ago
Reviewers:
sashab, dcheng
CC:
blink-reviews, chromium-reviews, kinuko+watch, mlamouri+watch-blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Audit use of m_client in WebFrameWidgetImpl and remove null checks. Now that a valid WebWidgetClient must always be passed when creating a WebFrameWidget we can remove some of the redundant m_client == nullptr checks. m_client can now become nullptr if close() is called on the WebFrameWidget, but this is generally caught by checking m_layerTreeView. To be safe if(m_client) checks have been replaced with DCHECK(m_client). BUG=696895 Review-Url: https://codereview.chromium.org/2775113002 Cr-Commit-Position: refs/heads/master@{#460612} Committed: https://chromium.googlesource.com/chromium/src/+/943648dbbf5a074d645d71c8108c0caedff7967a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -21 lines) Patch
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 7 chunks +17 lines, -21 lines 2 comments Download

Depends on Patchset:

Messages

Total messages: 15 (5 generated)
slangley
3 years, 9 months ago (2017-03-26 23:21:52 UTC) #2
sashab
Don't you hate those people who take forever to do reviews... LGTM Btw should we ...
3 years, 9 months ago (2017-03-27 03:03:47 UTC) #3
sashab
Suggestion, could be wrong: maybe you want to add the DCHECKs but leave the if-statements ...
3 years, 9 months ago (2017-03-27 03:05:02 UTC) #4
slangley
dcheng@ - what's the best way to roll out a change like this? also, can ...
3 years, 9 months ago (2017-03-27 03:06:31 UTC) #6
dcheng
Commit it and see if it crashes =) (If you want to be conservative, you ...
3 years, 9 months ago (2017-03-27 04:30:27 UTC) #7
dcheng
https://codereview.chromium.org/2775113002/diff/1/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp File third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp (right): https://codereview.chromium.org/2775113002/diff/1/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp#newcode342 third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp:342: DCHECK(m_client); (Also, I'm not sure where this DCHECK comes ...
3 years, 9 months ago (2017-03-27 04:33:24 UTC) #8
slangley
On 2017/03/27 at 04:33:24, dcheng wrote: > https://codereview.chromium.org/2775113002/diff/1/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp > File third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp (right): > > https://codereview.chromium.org/2775113002/diff/1/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp#newcode342 ...
3 years, 9 months ago (2017-03-27 04:37:42 UTC) #9
dcheng
On 2017/03/27 03:05:02, sashab wrote: > Suggestion, could be wrong: maybe you want to add ...
3 years, 9 months ago (2017-03-27 04:37:45 UTC) #10
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/2775113002/1
3 years, 8 months ago (2017-03-29 23:11:38 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 01:10:03 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/943648dbbf5a074d645d71c8108c...

Powered by Google App Engine
This is Rietveld 408576698