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 1da2fdd3f1525206597a0251e8920740ec887dcb..ef729e4b0596498a9955642a94894392af461e54 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -223,10 +223,7 @@ |
new BrowserPluginMsg_GuestContentWindowReady(instance_id_, |
guest_routing_id)); |
- // TODO(chrishtr): this code is wrong. The navigate_on_drag_drop field will |
- // be reset again the next time preferences are updated. |
- WebPreferences prefs = |
- GetWebContents()->GetRenderViewHost()->GetWebkitPreferences(); |
+ WebPreferences prefs = GetWebContents()->GetWebkitPrefs(); |
prefs.navigate_on_drag_drop = false; |
GetWebContents()->GetRenderViewHost()->UpdateWebkitPreferences(prefs); |