summaryrefslogtreecommitdiffstats
path: root/chrome/worker
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:24:37 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:24:37 +0000
commitd3851d562a059cf52a7539c87aedf132a3b824bd (patch)
treec61c56a9d5dcf64f44568d4e4d4141e26c834c74 /chrome/worker
parent4948090e4385c271a374e94baf43d2dcc4c230ce (diff)
downloadchromium_src-d3851d562a059cf52a7539c87aedf132a3b824bd.zip
chromium_src-d3851d562a059cf52a7539c87aedf132a3b824bd.tar.gz
chromium_src-d3851d562a059cf52a7539c87aedf132a3b824bd.tar.bz2
Make workers functional on OSX and Linux.
BUG=http://crbug.com/16664 TEST=The same tests run for Web Workers on Windows should be run on Linux and OSX. Review URL: http://codereview.chromium.org/155015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker')
-rw-r--r--chrome/worker/nativewebworker_impl.h3
-rw-r--r--chrome/worker/worker_main.cc2
-rw-r--r--chrome/worker/worker_thread.cc2
3 files changed, 2 insertions, 5 deletions
diff --git a/chrome/worker/nativewebworker_impl.h b/chrome/worker/nativewebworker_impl.h
index 5449e38..6e280cb 100644
--- a/chrome/worker/nativewebworker_impl.h
+++ b/chrome/worker/nativewebworker_impl.h
@@ -20,8 +20,7 @@ class NativeWebWorkerImpl : public WebKit::WebWorker {
explicit NativeWebWorkerImpl(WebKit::WebWorkerClient* client);
virtual ~NativeWebWorkerImpl();
- static WebWorker* NativeWebWorkerImpl::create(
- WebKit::WebWorkerClient* client);
+ static WebWorker* create(WebKit::WebWorkerClient* client);
// WebWorker implementation.
void startWorkerContext(const WebKit::WebURL& script_url,
diff --git a/chrome/worker/worker_main.cc b/chrome/worker/worker_main.cc
index e3846d4..03831b8b 100644
--- a/chrome/worker/worker_main.cc
+++ b/chrome/worker/worker_main.cc
@@ -20,8 +20,6 @@
// Mainline routine for running as the worker process.
int WorkerMain(const MainFunctionParams& parameters) {
- const CommandLine& parsed_command_line = parameters.command_line_;
-
// The main thread of the render process.
MessageLoopForIO main_message_loop;
std::wstring app_name = chrome::kBrowserAppName;
diff --git a/chrome/worker/worker_thread.cc b/chrome/worker/worker_thread.cc
index 803fef3..7663b7a 100644
--- a/chrome/worker/worker_thread.cc
+++ b/chrome/worker/worker_thread.cc
@@ -54,5 +54,5 @@ void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) {
void WorkerThread::OnCreateWorker(const GURL& url, int route_id) {
// WebWorkerClientProxy owns itself.
- WebWorkerClientProxy* worker = new WebWorkerClientProxy(url, route_id);
+ new WebWorkerClientProxy(url, route_id);
}