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

Issue 12609: Add a NULL channel check in CreateNPVariantParam as it can be called with... (Closed)

Created:
12 years, 1 month ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
jam
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a NULL channel check in CreateNPVariantParam as it can be called with a NULL channel during renderer plugin shutdown. Fixes bug http://code.google.com/p/chromium/issues/detail?id=4740 R=jam Bug=4740 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5943

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -9 lines) Patch
M chrome/plugin/npobject_util.cc View 1 2 3 1 chunk +15 lines, -9 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
ananta
12 years, 1 month ago (2008-11-24 20:54:41 UTC) #1
jam
12 years, 1 month ago (2008-11-24 21:37:19 UTC) #2
lgtm

http://codereview.chromium.org/12609/diff/202/4
File chrome/plugin/npobject_util.cc (right):

http://codereview.chromium.org/12609/diff/202/4#newcode174
Line 174: if (channel) {
a small comment here explaining that this could happen if there was a channel
error, and the caller code's Send will fail anyways would be helpful

http://codereview.chromium.org/12609/diff/202/4#newcode175
Line 175: // NPObjectStub adds its own reference to the NPObject it owns, so if
we
nit: 80 char

Powered by Google App Engine
This is Rietveld 408576698