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

Issue 7982026: Add GetPluginPath() to npobject_util to avoid content/plugin/ include from npobject_stub.cc (Closed)

Created:
9 years, 3 months ago by Steve Block
Modified:
9 years, 3 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke+watch-content_chromium.org, jam
Visibility:
Public.

Description

Modify NPObjectStub::OnSetProperty() to get the plugin path from the command line directly This avoids the need for NPObjectStub to use PluginThread::plugin_path() and allows us to remove the content/plugin/ include from npobject_stub.cc. We can also remove PluginThread::plugin_path(). Refactoring only, no functional change. BUG=96703 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102145

Patch Set 1 #

Total comments: 1

Patch Set 2 : Get path from command line directly #

Patch Set 3 : Fix namespace #

Total comments: 1

Patch Set 4 : Removed superfluous PluginThread::plugin_path_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -18 lines) Patch
M content/common/npobject_stub.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M content/common/npobject_util.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/common/npobject_util.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/plugin/plugin_thread.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M content/plugin/plugin_thread.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Steve Block
http://codereview.chromium.org/7982026/diff/1/content/common/npobject_util.h File content/common/npobject_util.h (left): http://codereview.chromium.org/7982026/diff/1/content/common/npobject_util.h#oldcode36 content/common/npobject_util.h:36: bool IsPluginProcess(); This seems like a strange place for ...
9 years, 3 months ago (2011-09-21 13:19:05 UTC) #1
jam
It would be simpler if npobject_stub just looked at the command line flags for switches::kPluginPath ...
9 years, 3 months ago (2011-09-21 16:01:54 UTC) #2
Steve Block
9 years, 3 months ago (2011-09-21 18:46:46 UTC) #3
jam
9 years, 3 months ago (2011-09-21 19:09:26 UTC) #4
lgtm

http://codereview.chromium.org/7982026/diff/4001/content/plugin/plugin_thread.h
File content/plugin/plugin_thread.h (left):

http://codereview.chromium.org/7982026/diff/4001/content/plugin/plugin_thread...
content/plugin/plugin_thread.h:49: FilePath plugin_path_;
nit: i think this isn't needed anymore

Powered by Google App Engine
This is Rietveld 408576698