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

Issue 9297049: PluginLoaderPosix: Fix an off by one error. (Closed)

Created:
8 years, 11 months ago by James Hawkins
Modified:
8 years, 10 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

PluginLoaderPosix: Fix the case where the utility process crashes after all plugins have been loaded. This was causing a crash on load on my system. BUG=111935 TEST=none R=rsesek Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120098

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review fix. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M content/browser/plugin_loader_posix.cc View 1 1 chunk +7 lines, -2 lines 3 comments Download
M content/browser/plugin_loader_posix_unittest.cc View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
James Hawkins
8 years, 11 months ago (2012-01-28 04:29:01 UTC) #1
James Hawkins
The following tests are failing with this change: PluginLoaderPosixTest.CrashedProcess, PluginLoaderPosixTest.AllCrashed. It's not clear from either ...
8 years, 11 months ago (2012-01-29 00:57:41 UTC) #2
Robert Sesek
I'm fairly certain that this code is correct. If anything, OnProcessedCrashed() may need a range ...
8 years, 10 months ago (2012-01-30 16:45:41 UTC) #3
James Hawkins
On 2012/01/30 16:45:41, rsesek wrote: > I'm fairly certain that this code is correct. If ...
8 years, 10 months ago (2012-01-30 17:56:58 UTC) #4
James Hawkins
http://codereview.chromium.org/9297049/diff/1/content/browser/plugin_loader_posix_unittest.cc File content/browser/plugin_loader_posix_unittest.cc (right): http://codereview.chromium.org/9297049/diff/1/content/browser/plugin_loader_posix_unittest.cc#newcode213 content/browser/plugin_loader_posix_unittest.cc:213: plugin_loader()->OnProcessCrashed(42); On 2012/01/30 16:45:41, rsesek wrote: > Why would ...
8 years, 10 months ago (2012-01-30 17:58:21 UTC) #5
James Hawkins
Updated the fix to special case when all plugins have loaded.
8 years, 10 months ago (2012-01-31 22:55:59 UTC) #6
Robert Sesek
Please also update the CL description to reflect the bug that this is actually fixing. ...
8 years, 10 months ago (2012-01-31 23:16:51 UTC) #7
Robert Sesek
And by that I mean LGTM.
8 years, 10 months ago (2012-01-31 23:17:00 UTC) #8
James Hawkins
http://codereview.chromium.org/9297049/diff/9001/content/browser/plugin_loader_posix.cc File content/browser/plugin_loader_posix.cc (right): http://codereview.chromium.org/9297049/diff/9001/content/browser/plugin_loader_posix.cc#newcode47 content/browser/plugin_loader_posix.cc:47: if (next_load_index_ == canonical_list_.size()) { On 2012/01/31 23:16:51, rsesek ...
8 years, 10 months ago (2012-01-31 23:28:22 UTC) #9
Robert Sesek
8 years, 10 months ago (2012-02-01 00:19:10 UTC) #10
http://codereview.chromium.org/9297049/diff/9001/content/browser/plugin_loade...
File content/browser/plugin_loader_posix.cc (right):

http://codereview.chromium.org/9297049/diff/9001/content/browser/plugin_loade...
content/browser/plugin_loader_posix.cc:47: if (next_load_index_ ==
canonical_list_.size()) {
On 2012/01/31 23:28:22, James Hawkins wrote:
> On 2012/01/31 23:16:51, rsesek wrote:
> > nit: Add a comment referencing this bug.
> 
> Done.

FYI this isn't on the latest patch set if you intend to CQ.

Powered by Google App Engine
This is Rietveld 408576698