summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/plugins/webview_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/plugins/webview_plugin.cc')
-rw-r--r--chrome/renderer/plugins/webview_plugin.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/renderer/plugins/webview_plugin.cc b/chrome/renderer/plugins/webview_plugin.cc
index eb1fea7..2853a313 100644
--- a/chrome/renderer/plugins/webview_plugin.cc
+++ b/chrome/renderer/plugins/webview_plugin.cc
@@ -6,6 +6,7 @@
#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram.h"
+#include "content/public/renderer/web_preferences.h"
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/WebSize.h"
#include "third_party/WebKit/public/platform/WebURL.h"
@@ -19,7 +20,6 @@
#include "third_party/WebKit/public/web/WebPluginContainer.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "webkit/common/webpreferences.h"
-#include "webkit/renderer/webpreferences_renderer.h"
using WebKit::WebCanvas;
using WebKit::WebCursorInfo;
@@ -50,14 +50,13 @@ WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate)
}
// static
-WebViewPlugin* WebViewPlugin::Create(
- WebViewPlugin::Delegate* delegate,
- const WebPreferences& preferences,
- const std::string& html_data,
- const GURL& url) {
+WebViewPlugin* WebViewPlugin::Create(WebViewPlugin::Delegate* delegate,
+ const WebPreferences& preferences,
+ const std::string& html_data,
+ const GURL& url) {
WebViewPlugin* plugin = new WebViewPlugin(delegate);
WebView* web_view = plugin->web_view();
- webkit_glue::ApplyWebPreferences(preferences, web_view);
+ content::ApplyWebPreferences(preferences, web_view);
web_view->mainFrame()->loadHTMLString(html_data, url);
return plugin;
}