Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3030)

Unified Diff: chrome/browser/search_engines/search_provider_install_data_unittest.cc

Issue 8570022: base::Bind() conversion for chrome/browser/search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/search_provider_install_data_unittest.cc
diff --git a/chrome/browser/search_engines/search_provider_install_data_unittest.cc b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
index ebd479497c6f99c71ae24ba984fab6f4b380da65..c47142f86f92cb8ad70b04c2e6b4255a0b5a3fb3 100644
--- a/chrome/browser/search_engines/search_provider_install_data_unittest.cc
+++ b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
@@ -5,9 +5,9 @@
#include <string>
#include "base/basictypes.h"
+#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
-#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/search_engines/search_provider_install_data.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -94,7 +94,7 @@ bool TestGetInstallState::RunTests() {
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)->PostTask(
FROM_HERE,
- NewRunnableMethod(this, &TestGetInstallState::StartTestOnIOThread));
+ base::Bind(&TestGetInstallState::StartTestOnIOThread, this));
// Run the current message loop. When the test is finished on the I/O thread,
// it invokes Quit, which unblocks this.
MessageLoop::current()->Run();
@@ -109,8 +109,7 @@ TestGetInstallState::~TestGetInstallState() {
void TestGetInstallState::StartTestOnIOThread() {
install_data_->CallWhenLoaded(
- NewRunnableMethod(this,
- &TestGetInstallState::DoInstallStateTests));
+ base::Bind(&TestGetInstallState::DoInstallStateTests, this));
}
void TestGetInstallState::DoInstallStateTests() {

Powered by Google App Engine
This is Rietveld 408576698