| 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 aca15a02169f49d33ffc4654b23bc040f8468466..3cf71cd0830b0dcbcb6bddcd27b49b8263f648c8 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -415,20 +415,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();
|
| // TODO(fsamuel): Investigate whether it's possible to update state earlier
|
|
|