diff options
author | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 22:50:08 +0000 |
---|---|---|
committer | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 22:50:08 +0000 |
commit | 026ef77fead6f5cf09dc35c873ca5d367dc7992c (patch) | |
tree | eb9b57a7fc7b357ddf551ab44a7a821a5205137e | |
parent | 2739e0ecdd8de58da5ea3577c22c5584951bfbb5 (diff) | |
download | chromium_src-026ef77fead6f5cf09dc35c873ca5d367dc7992c.zip chromium_src-026ef77fead6f5cf09dc35c873ca5d367dc7992c.tar.gz chromium_src-026ef77fead6f5cf09dc35c873ca5d367dc7992c.tar.bz2 |
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
-rw-r--r-- | chrome/browser/password_manager/password_store_win.cc | 3 | ||||
-rw-r--r-- | chrome/browser/user_style_sheet_watcher.cc | 7 | ||||
-rw-r--r-- | chrome/default_plugin/plugin_install_job_monitor.cc | 7 |
3 files changed, 10 insertions, 7 deletions
diff --git a/chrome/browser/password_manager/password_store_win.cc b/chrome/browser/password_manager/password_store_win.cc index 2bbe344..acb296d 100644 --- a/chrome/browser/password_manager/password_store_win.cc +++ b/chrome/browser/password_manager/password_store_win.cc @@ -6,6 +6,7 @@ #include <map> +#include "base/bind.h" #include "base/logging.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" @@ -187,7 +188,7 @@ PasswordStore::GetLoginsRequest* PasswordStoreWin::NewGetLoginsRequest( void PasswordStoreWin::Shutdown() { BrowserThread::PostTask( BrowserThread::DB, FROM_HERE, - NewRunnableMethod(this, &PasswordStoreWin::ShutdownOnDBThread)); + base::Bind(&PasswordStoreWin::ShutdownOnDBThread, this)); PasswordStoreDefault::Shutdown(); } diff --git a/chrome/browser/user_style_sheet_watcher.cc b/chrome/browser/user_style_sheet_watcher.cc index de7552d..114ec39 100644 --- a/chrome/browser/user_style_sheet_watcher.cc +++ b/chrome/browser/user_style_sheet_watcher.cc @@ -5,6 +5,7 @@ #include "chrome/browser/user_style_sheet_watcher.h" #include "base/base64.h" +#include "base/bind.h" #include "base/file_util.h" #include "chrome/browser/profiles/profile.h" #include "chrome/common/chrome_notification_types.h" @@ -117,8 +118,8 @@ void UserStyleSheetLoader::LoadStyleSheet(const FilePath& style_sheet_file) { } } BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - NewRunnableMethod(this, &UserStyleSheetLoader::SetStyleSheet, - style_sheet_url)); + base::Bind(&UserStyleSheetLoader::SetStyleSheet, this, + style_sheet_url)); } void UserStyleSheetLoader::SetStyleSheet(const GURL& url) { @@ -148,7 +149,7 @@ void UserStyleSheetWatcher::Init() { // Make sure we run on the file thread. if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) { BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, - NewRunnableMethod(this, &UserStyleSheetWatcher::Init)); + base::Bind(&UserStyleSheetWatcher::Init, this)); return; } diff --git a/chrome/default_plugin/plugin_install_job_monitor.cc b/chrome/default_plugin/plugin_install_job_monitor.cc index c969037..a562569 100644 --- a/chrome/default_plugin/plugin_install_job_monitor.cc +++ b/chrome/default_plugin/plugin_install_job_monitor.cc @@ -4,6 +4,7 @@ #include "chrome/default_plugin/plugin_install_job_monitor.h" +#include "base/bind.h" #include "base/message_loop.h" #include "chrome/default_plugin/plugin_impl.h" @@ -41,9 +42,9 @@ bool PluginInstallationJobMonitorThread::Initialize() { } void PluginInstallationJobMonitorThread::Init() { - this->message_loop()->PostTask(FROM_HERE, - NewRunnableMethod(this, - &PluginInstallationJobMonitorThread::WaitForJobThread)); + this->message_loop()->PostTask( + FROM_HERE, + base::Bind(&PluginInstallationJobMonitorThread::WaitForJobThread, this)); } void PluginInstallationJobMonitorThread::WaitForJobThread() { |