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

Issue 2845413002: Plugin Power Saver: Add missing RenderFrame null-checks in placeholders (Closed)

Created:
3 years, 7 months ago by tommycli
Modified:
3 years, 7 months ago
Reviewers:
raymes
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Add missing RenderFrame null-checks in placeholders PluginPlaceholders are RenderFrameObservers, and render_frames can go away before the object is actually destructed (during shutdown). This CL adds the missing null checks needed to prevent trying to use null pointers. BUG=693120 R=raymes@chromium.org Review-Url: https://codereview.chromium.org/2845413002 . Cr-Commit-Position: refs/heads/master@{#468451} Committed: https://chromium.googlesource.com/chromium/src/+/254b5995602a9d0d912d30cc4eb77ab2cb36b2ff

Patch Set 1 #

Total comments: 4

Patch Set 2 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
tommycli
raymes: PTAL, this fixes a crash by adding some discipline about our usage of render_frame(). ...
3 years, 7 months ago (2017-04-28 17:10:24 UTC) #3
raymes
lg - just one question. Thanks! https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode238 chrome/renderer/plugins/chrome_plugin_placeholder.cc:238: render_frame()->Send(new ChromeViewHostMsg_GetPluginInfo( Do ...
3 years, 7 months ago (2017-04-30 23:34:33 UTC) #7
tommycli
raymes: Thanks, PTAL again https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode238 chrome/renderer/plugins/chrome_plugin_placeholder.cc:238: render_frame()->Send(new ChromeViewHostMsg_GetPluginInfo( On 2017/04/30 23:34:33, ...
3 years, 7 months ago (2017-05-01 15:37:19 UTC) #8
raymes
lgtm https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode238 chrome/renderer/plugins/chrome_plugin_placeholder.cc:238: render_frame()->Send(new ChromeViewHostMsg_GetPluginInfo( On 2017/05/01 15:37:18, tommycli wrote: > ...
3 years, 7 months ago (2017-05-01 22:10:26 UTC) #9
tommycli
https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/2845413002/diff/1/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode238 chrome/renderer/plugins/chrome_plugin_placeholder.cc:238: render_frame()->Send(new ChromeViewHostMsg_GetPluginInfo( On 2017/05/01 22:10:26, raymes wrote: > On ...
3 years, 7 months ago (2017-05-01 22:15:56 UTC) #11
tommycli
3 years, 7 months ago (2017-05-01 22:16:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
254b5995602a9d0d912d30cc4eb77ab2cb36b2ff (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698