summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration.cc
diff options
context:
space:
mode:
authorbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-01 01:28:36 +0000
committerbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-01 01:28:36 +0000
commitc5efb95f89e61e0439d957dd9f8af40f276909cf (patch)
treee5d56d07ab391b7e89b767418ff69a634991caca /chrome/browser/shell_integration.cc
parent05cb5205aaa4420fdc6aa2927ce16f7f09b9a9f1 (diff)
downloadchromium_src-c5efb95f89e61e0439d957dd9f8af40f276909cf.zip
chromium_src-c5efb95f89e61e0439d957dd9f8af40f276909cf.tar.gz
chromium_src-c5efb95f89e61e0439d957dd9f8af40f276909cf.tar.bz2
Change NewRunnableMethod to base::Bind in shell_integration.cc
BUG=None TEST=Manual testing performed. Review URL: http://codereview.chromium.org/8335004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.cc')
-rw-r--r--chrome/browser/shell_integration.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index bcd5d6f..461e49f 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/shell_integration.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
@@ -80,8 +81,8 @@ void ShellIntegration::DefaultWebClientWorker::StartCheckIsDefault() {
observer_->SetDefaultWebClientUIState(STATE_PROCESSING);
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(
- this, &DefaultWebClientWorker::ExecuteCheckIsDefault));
+ base::Bind(
+ &DefaultWebClientWorker::ExecuteCheckIsDefault, this));
}
}
@@ -91,8 +92,8 @@ void ShellIntegration::DefaultWebClientWorker::StartSetAsDefault() {
}
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(
- this, &DefaultWebClientWorker::ExecuteSetAsDefault));
+ base::Bind(
+ &DefaultWebClientWorker::ExecuteSetAsDefault, this));
}
void ShellIntegration::DefaultWebClientWorker::ObserverDestroyed() {
@@ -110,8 +111,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteCheckIsDefault() {
DefaultWebClientState state = CheckIsDefault();
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(
- this, &DefaultWebClientWorker::CompleteCheckIsDefault, state));
+ base::Bind(
+ &DefaultWebClientWorker::CompleteCheckIsDefault, this, state));
}
void ShellIntegration::DefaultWebClientWorker::CompleteCheckIsDefault(
@@ -131,8 +132,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteSetAsDefault() {
SetAsDefault();
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(
- this, &DefaultWebClientWorker::CompleteSetAsDefault));
+ base::Bind(
+ &DefaultWebClientWorker::CompleteSetAsDefault, this));
}
void ShellIntegration::DefaultWebClientWorker::CompleteSetAsDefault() {