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
diff --git a/chrome/browser/process_singleton_uitest.cc b/chrome/browser/process_singleton_uitest.cc
index d96aee9..70f8161 100644
--- a/chrome/browser/process_singleton_uitest.cc
+++ b/chrome/browser/process_singleton_uitest.cc
@@ -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 @@
// 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 @@
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.