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

Issue 718523002: Fix a bug that would cause the plugin_loader to stall. (Closed)

Created:
6 years, 1 month ago by erikchen
Modified:
6 years, 1 month ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix a bug that would cause the plugin_loader to stall. If there's an error launching the plugin_loader's process_host, then the plugin_loader will stall forever. This happened because the return value of process_host_->Send() was being ignored, and because PluginLoaderPosix was not overriding OnProcessLaunchFailed(). This CL also includes a minor refactor: - Removed the LOCAL_HISTOGRAM_TIMES "PluginLoaderPosix.LoadDone", because it was measuring the time between MaybeRunPendingCallbacks(), rather than the amount of time it takes to load the plugins. I'm guessing that this metric is out of date, and was never removed. - Separated MaybeRunPendingCallbacks() into two methods, IsFinishedLoadingPlugins() and FinishedLoadingPlugins(). - Removed the method MaybeAddInternalPlugin(), as its name was confusing, and added FindInternalPlugin() in its place. This also simplified the logic slightly. BUG=429388 Committed: https://crrev.com/f610f1386915840bee7de38377b5e5b80f6f076e Cr-Commit-Position: refs/heads/master@{#303581}

Patch Set 1 : #

Patch Set 2 : Lambda capture variable should be passed by reference. #

Patch Set 3 : Fix a bug where internal plugins were not correctly being loaded. #

Total comments: 8

Patch Set 4 : Comments from avi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -41 lines) Patch
M content/browser/plugin_loader_posix.h View 3 chunks +18 lines, -5 lines 0 comments Download
M content/browser/plugin_loader_posix.cc View 1 2 3 7 chunks +55 lines, -36 lines 0 comments Download
M content/browser/plugin_loader_posix_unittest.cc View 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
erikchen
avi: Please review.
6 years, 1 month ago (2014-11-11 00:33:26 UTC) #2
Avi (use Gerrit)
lgtm https://codereview.chromium.org/718523002/diff/80001/content/browser/plugin_loader_posix.cc File content/browser/plugin_loader_posix.cc (right): https://codereview.chromium.org/718523002/diff/80001/content/browser/plugin_loader_posix.cc#newcode42 content/browser/plugin_loader_posix.cc:42: // SetPlugins() nit: end comments with a . ...
6 years, 1 month ago (2014-11-11 02:38:06 UTC) #5
erikchen
https://codereview.chromium.org/718523002/diff/80001/content/browser/plugin_loader_posix.cc File content/browser/plugin_loader_posix.cc (right): https://codereview.chromium.org/718523002/diff/80001/content/browser/plugin_loader_posix.cc#newcode42 content/browser/plugin_loader_posix.cc:42: // SetPlugins() On 2014/11/11 02:38:06, Avi wrote: > nit: ...
6 years, 1 month ago (2014-11-11 02:44:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/718523002/100001
6 years, 1 month ago (2014-11-11 02:46:05 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:100001)
6 years, 1 month ago (2014-11-11 03:28:26 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 03:29:57 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f610f1386915840bee7de38377b5e5b80f6f076e
Cr-Commit-Position: refs/heads/master@{#303581}

Powered by Google App Engine
This is Rietveld 408576698