diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:30:30 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:30:30 +0000 |
commit | 94f9a0f686619656ca4ff2b6511179dc2132cc5d (patch) | |
tree | 26051806295528d68b4e5e65a0f39eaac18f7a24 /chrome/worker/worker_thread.h | |
parent | 1b5d23dfa22d8858dc9ab35d373fcf328aadbcba (diff) | |
download | chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.zip chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.tar.gz chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.tar.bz2 |
Switch child threads so that current() only works on the correct thread and the correct process.
Review URL: http://codereview.chromium.org/126086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/worker_thread.h')
-rw-r--r-- | chrome/worker/worker_thread.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/worker/worker_thread.h b/chrome/worker/worker_thread.h index c7f9a09..6bea33c 100644 --- a/chrome/worker/worker_thread.h +++ b/chrome/worker/worker_thread.h @@ -17,9 +17,7 @@ class WorkerThread : public ChildThread { ~WorkerThread(); // Returns the one worker thread. - static WorkerThread* current() { - return static_cast<WorkerThread*>(ChildThread::current()); - } + static WorkerThread* current(); private: virtual void OnControlMessageReceived(const IPC::Message& msg); |