From 2fab253a61e797b461b21671af7942521b749ee3 Mon Sep 17 00:00:00 2001 From: "jorlow@chromium.org" Date: Mon, 17 Aug 2009 23:00:59 +0000 Subject: Remove webview's dependency on webpreferences. TEST=none BUG=none Review URL: http://codereview.chromium.org/165513 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23589 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webworker_impl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webkit/glue/webworker_impl.cc') diff --git a/webkit/glue/webworker_impl.cc b/webkit/glue/webworker_impl.cc index da8a273..3b33614 100644 --- a/webkit/glue/webworker_impl.cc +++ b/webkit/glue/webworker_impl.cc @@ -149,8 +149,9 @@ void WebWorkerImpl::startWorkerContext(const WebURL& script_url, // loading requests from the worker context to the rest of WebKit and Chromium // infrastructure. DCHECK(!web_view_); - web_view_ = WebView::Create(WorkerWebViewDelegate::worker_delegate(), - WebPreferences()); + web_view_ = WebView::Create(); + WebPreferences().Apply(web_view_); + web_view_->InitializeMainFrame(WorkerWebViewDelegate::worker_delegate()); WebFrameImpl* web_frame = static_cast(web_view_->GetMainFrame()); -- cgit v1.1