Commit 026ef77f authored by csilv@chromium.org's avatar csilv@chromium.org

More base::Bind migrations.

BUG=none
Review URL: http://codereview.chromium.org/8603007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111241 0039d316-1c4b-4281-b951-d872f2087c98
parent 2739e0ec
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <map> #include <map>
#include "base/bind.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/string_util.h" #include "base/string_util.h"
#include "base/utf_string_conversions.h" #include "base/utf_string_conversions.h"
...@@ -187,7 +188,7 @@ PasswordStore::GetLoginsRequest* PasswordStoreWin::NewGetLoginsRequest( ...@@ -187,7 +188,7 @@ PasswordStore::GetLoginsRequest* PasswordStoreWin::NewGetLoginsRequest(
void PasswordStoreWin::Shutdown() { void PasswordStoreWin::Shutdown() {
BrowserThread::PostTask( BrowserThread::PostTask(
BrowserThread::DB, FROM_HERE, BrowserThread::DB, FROM_HERE,
NewRunnableMethod(this, &PasswordStoreWin::ShutdownOnDBThread)); base::Bind(&PasswordStoreWin::ShutdownOnDBThread, this));
PasswordStoreDefault::Shutdown(); PasswordStoreDefault::Shutdown();
} }
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "chrome/browser/user_style_sheet_watcher.h" #include "chrome/browser/user_style_sheet_watcher.h"
#include "base/base64.h" #include "base/base64.h"
#include "base/bind.h"
#include "base/file_util.h" #include "base/file_util.h"
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_notification_types.h"
...@@ -117,7 +118,7 @@ void UserStyleSheetLoader::LoadStyleSheet(const FilePath& style_sheet_file) { ...@@ -117,7 +118,7 @@ void UserStyleSheetLoader::LoadStyleSheet(const FilePath& style_sheet_file) {
} }
} }
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this, &UserStyleSheetLoader::SetStyleSheet, base::Bind(&UserStyleSheetLoader::SetStyleSheet, this,
style_sheet_url)); style_sheet_url));
} }
...@@ -148,7 +149,7 @@ void UserStyleSheetWatcher::Init() { ...@@ -148,7 +149,7 @@ void UserStyleSheetWatcher::Init() {
// Make sure we run on the file thread. // Make sure we run on the file thread.
if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) { if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) {
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(this, &UserStyleSheetWatcher::Init)); base::Bind(&UserStyleSheetWatcher::Init, this));
return; return;
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "chrome/default_plugin/plugin_install_job_monitor.h" #include "chrome/default_plugin/plugin_install_job_monitor.h"
#include "base/bind.h"
#include "base/message_loop.h" #include "base/message_loop.h"
#include "chrome/default_plugin/plugin_impl.h" #include "chrome/default_plugin/plugin_impl.h"
...@@ -41,9 +42,9 @@ bool PluginInstallationJobMonitorThread::Initialize() { ...@@ -41,9 +42,9 @@ bool PluginInstallationJobMonitorThread::Initialize() {
} }
void PluginInstallationJobMonitorThread::Init() { void PluginInstallationJobMonitorThread::Init() {
this->message_loop()->PostTask(FROM_HERE, this->message_loop()->PostTask(
NewRunnableMethod(this, FROM_HERE,
&PluginInstallationJobMonitorThread::WaitForJobThread)); base::Bind(&PluginInstallationJobMonitorThread::WaitForJobThread, this));
} }
void PluginInstallationJobMonitorThread::WaitForJobThread() { void PluginInstallationJobMonitorThread::WaitForJobThread() {
......
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