| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index 2c31d0f9ff58b1eb75231625f71194b9bb3612ae..433a2a3ea89ef9a032619763408c76a2938f4f7c 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -413,20 +413,6 @@ void BrowserPluginGuest::DidCommitProvisionalLoadForFrame(
|
| RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.DidNavigate"));
|
| }
|
|
|
| -void BrowserPluginGuest::DidStopLoading(RenderViewHost* render_view_host) {
|
| - bool enable_dragdrop = delegate_ && delegate_->IsDragAndDropEnabled();
|
| - if (!enable_dragdrop) {
|
| - // Initiating a drag from inside a guest is currently not supported without
|
| - // the kEnableBrowserPluginDragDrop flag on a linux platform. So inject some
|
| - // JS to disable it. http://crbug.com/161112
|
| - const char script[] = "window.addEventListener('dragstart', function() { "
|
| - " window.event.preventDefault(); "
|
| - "});";
|
| - render_view_host->GetMainFrame()->ExecuteJavaScript(
|
| - base::ASCIIToUTF16(script));
|
| - }
|
| -}
|
| -
|
| void BrowserPluginGuest::RenderViewReady() {
|
| RenderViewHost* rvh = GetWebContents()->GetRenderViewHost();
|
| // The guest RenderView should always live in a guest process.
|
|
|