Commit 0b05881d authored by dcheng@chromium.org's avatar dcheng@chromium.org

base::Bind() conversion for ProcessSingletonTest

BUG=none
TEST=compiles and ProcessSingletonTest passes.


Review URL: http://codereview.chromium.org/8574030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110395 0039d316-1c4b-4281-b951-d872f2087c98
parent 952a68ef
......@@ -12,6 +12,7 @@
#include <list>
#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/ref_counted.h"
......@@ -33,7 +34,7 @@ namespace {
// This is for the code that is to be ran in multiple threads at once,
// to stress a race condition on first process start.
// We use the thread safe ref counted base class so that we can use the
// NewRunnableMethod class to run the StartChrome methods in many threads.
// base::Bind to run the StartChrome methods in many threads.
class ChromeStarter : public base::RefCountedThreadSafe<ChromeStarter> {
public:
ChromeStarter(int timeout_ms, const FilePath& user_data_dir)
......@@ -256,10 +257,10 @@ TEST_F(ProcessSingletonTest, MAYBE_StartupRaceCondition) {
chrome_starter_threads_[i]->message_loop());
chrome_starter_threads_[i]->message_loop()->PostTask(
FROM_HERE, NewRunnableMethod(chrome_starters_[i].get(),
&ChromeStarter::StartChrome,
&threads_waker_,
first_run));
FROM_HERE, base::Bind(&ChromeStarter::StartChrome,
chrome_starters_[i].get(),
&threads_waker_,
first_run));
}
// Wait for all the starters to be ready.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment