From 49a2000d8b22643af5cf092211f3ba246c4911ee Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Sun, 18 Aug 2013 12:43:31 +0000 Subject: Move webpreferences_renderer.* into content. BUG=265753 TEST=content_shell R=jamesr@chromium.org,jam@chromium.org,piman@chromium.org Review URL: https://chromiumcodereview.appspot.com/23020011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218198 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/plugins/webview_plugin.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'chrome/renderer/plugins') 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; } -- cgit v1.1