Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
index 19de8ca09322a125c3c074063b2be30ce1ec4700..b0a439eb2e99b3e86cdec04eda188f3f1082522a 100644 |
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
@@ -776,19 +776,11 @@ PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createPlugin( |
RefPtrWillBeRawPtr<WebPluginContainerImpl> container = |
WebPluginContainerImpl::create(element, webPlugin); |
- if (!webPlugin->initialize(container.get())) { |
-#if ENABLE(OILPAN) |
- container->dispose(); |
-#endif |
+ if (!webPlugin->initialize(container.get())) |
return nullptr; |
- } |
- if (policy != AllowDetachedPlugin && !element->layoutObject()) { |
-#if ENABLE(OILPAN) |
- container->dispose(); |
-#endif |
+ if (policy != AllowDetachedPlugin && !element->layoutObject()) |
return nullptr; |
- } |
return container; |
} |