Index: components/plugins/renderer/webview_plugin.cc |
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc |
index 329a10c795161f273e8616ed0e89cf4ec4668c44..a366089fdca59a5d589d0645e1fc4d95edfc0bd5 100644 |
--- a/components/plugins/renderer/webview_plugin.cc |
+++ b/components/plugins/renderer/webview_plugin.cc |
@@ -50,9 +50,10 @@ WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate, |
web_view_(WebView::create(this)), |
finished_loading_(false), |
focused_(false) { |
- // ApplyWebPreferences before making a WebLocalFrame so that the frame sees a |
- // consistent view of our preferences. |
- content::RenderView::ApplyWebPreferences(preferences, web_view_); |
+ // ApplyWebPreferencesInternal before making a WebLocalFrame so that the frame |
+ // sees a consistent view of our preferences. |
+ content::RenderView::ApplyWebPreferencesInternal(preferences, web_view_, |
+ NULL); |
web_frame_ = WebLocalFrame::create(blink::WebTreeScopeType::Document, this); |
web_view_->setMainFrame(web_frame_); |
} |