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

Issue 8440042: Send the index in the canonical list over IPC when using the OOP plugin loader. (Closed)

Created:
9 years, 1 month ago by Robert Sesek
Modified:
9 years, 1 month ago
Reviewers:
Bernhard Bauer, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Send the index in the canonical list over IPC when using the OOP plugin loader. Comparing paths does not work all the time on Linux if the plugin is wrapped and is initially loaded from a symlinked location. BUG=17863 TEST=Waterfall Linux(dbg)(2) plugin_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108306

Patch Set 1 #

Total comments: 5

Patch Set 2 : uint32_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -31 lines) Patch
M content/browser/plugin_loader_posix.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/plugin_loader_posix.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/plugin_loader_posix_unittest.cc View 1 11 chunks +15 lines, -15 lines 0 comments Download
M content/common/utility_messages.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/utility/utility_thread_impl.cc View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Robert Sesek
9 years, 1 month ago (2011-11-02 15:58:49 UTC) #1
Bernhard Bauer
LGTM, with a suggestion though: http://codereview.chromium.org/8440042/diff/1/content/utility/utility_thread_impl.cc File content/utility/utility_thread_impl.cc (right): http://codereview.chromium.org/8440042/diff/1/content/utility/utility_thread_impl.cc#newcode142 content/utility/utility_thread_impl.cc:142: Send(new UtilityHostMsg_LoadedPlugin(i, group->web_plugin_infos().front())); I ...
9 years, 1 month ago (2011-11-02 16:03:51 UTC) #2
jam
lgtm http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages.h File content/common/utility_messages.h (right): http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages.h#newcode73 content/common/utility_messages.h:73: size_t /* index in the vector */, here ...
9 years, 1 month ago (2011-11-02 16:09:29 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages.h File content/common/utility_messages.h (right): http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages.h#newcode73 content/common/utility_messages.h:73: size_t /* index in the vector */, On 2011/11/02 ...
9 years, 1 month ago (2011-11-02 16:13:47 UTC) #4
Robert Sesek
9 years, 1 month ago (2011-11-02 16:26:28 UTC) #5
Landing…

http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages.h
File content/common/utility_messages.h (right):

http://codereview.chromium.org/8440042/diff/1/content/common/utility_messages...
content/common/utility_messages.h:73: size_t /* index in the vector */,
On 2011/11/02 16:09:29, John Abd-El-Malek wrote:
> here and below, it's slightly better to send int instead of size_t over IPC.
The
> reason is if you ever want to talk between a 64 bit browser and 32 bit plugin
> loader, the size_t's would be different sizes

Done. Used uint32_t because I'm comparing against size_t.

http://codereview.chromium.org/8440042/diff/1/content/utility/utility_thread_...
File content/utility/utility_thread_impl.cc (right):

http://codereview.chromium.org/8440042/diff/1/content/utility/utility_thread_...
content/utility/utility_thread_impl.cc:142: Send(new
UtilityHostMsg_LoadedPlugin(i, group->web_plugin_infos().front()));
On 2011/11/02 16:03:52, Bernhard Bauer wrote:
> I still feel a little bit silly just sending an increasing index back. I guess
> we could send the original path instead of the index?

I think the index is fine to send. Sending the original path is more data that
we likely wouldn't use.

Powered by Google App Engine
This is Rietveld 408576698