summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/webplugin_delegate_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/plugin/webplugin_delegate_stub.cc')
-rw-r--r--chrome/plugin/webplugin_delegate_stub.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index 3bfd002..e607667 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -128,15 +128,14 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params,
FilePath path = FilePath::FromWStringHack(
command_line.GetSwitchValue(switches::kPluginPath));
-
- gfx::PluginWindowHandle parent = NULL;
#if defined(OS_WIN)
- parent = gfx::NativeViewFromId(params.containing_window);
-#elif defined(OS_LINUX)
- PluginThread::current()->Send(new PluginProcessHostMsg_MapNativeViewId(
- params.containing_window, &parent));
+ delegate_ = WebPluginDelegate::Create(
+ path, mime_type_, gfx::NativeViewFromId(params.containing_window));
+#else
+ NOTIMPLEMENTED() << " need to figure out nativeview id business";
+ delegate_ = WebPluginDelegate::Create(
+ path, mime_type_, NULL);
#endif
- delegate_ = WebPluginDelegate::Create(path, mime_type_, parent);
if (delegate_) {
webplugin_ = new WebPluginProxy(channel_, instance_id_, delegate_);