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

Unified Diff: content/common/npobject_stub.cc

Issue 7982026: Add GetPluginPath() to npobject_util to avoid content/plugin/ include from npobject_stub.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed superfluous PluginThread::plugin_path_ Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/npobject_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/npobject_stub.cc
diff --git a/content/common/npobject_stub.cc b/content/common/npobject_stub.cc
index af0f33a3eff907796039186eab54b56cf1bfa3b3..ee82a31284739deb92c80e4aef3020b81fd2516b 100644
--- a/content/common/npobject_stub.cc
+++ b/content/common/npobject_stub.cc
@@ -4,17 +4,17 @@
#include "content/common/npobject_stub.h"
+#include "base/command_line.h"
#include "content/common/content_client.h"
+#include "content/common/content_switches.h"
+#include "content/common/np_channel_base.h"
#include "content/common/npobject_util.h"
#include "content/common/plugin_messages.h"
-#include "content/plugin/plugin_thread.h"
#include "third_party/npapi/bindings/npapi.h"
#include "third_party/npapi/bindings/npruntime.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
#include "webkit/plugins/npapi/plugin_constants_win.h"
-class NPChannelBase;
-
using WebKit::WebBindings;
NPObjectStub::NPObjectStub(
@@ -242,8 +242,11 @@ void NPObjectStub::OnSetProperty(const NPIdentifier_Param& name,
if (IsPluginProcess()) {
if (npobject_->_class->setProperty) {
#if defined(OS_WIN)
+ static FilePath plugin_path =
+ CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ switches::kPluginPath);
static std::wstring filename = StringToLowerASCII(
- PluginThread::current()->plugin_path().BaseName().value());
+ plugin_path.BaseName().value());
static NPIdentifier fullscreen =
WebBindings::getStringIdentifier("fullScreen");
if (filename == webkit::npapi::kNewWMPPlugin && id == fullscreen) {
« no previous file with comments | « no previous file | content/common/npobject_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698