Commit c5efb95f authored by benwells@chromium.org's avatar benwells@chromium.org

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
parent 05cb5205
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "chrome/browser/shell_integration.h" #include "chrome/browser/shell_integration.h"
#include "base/bind.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/file_util.h" #include "base/file_util.h"
#include "base/path_service.h" #include "base/path_service.h"
...@@ -80,8 +81,8 @@ void ShellIntegration::DefaultWebClientWorker::StartCheckIsDefault() { ...@@ -80,8 +81,8 @@ void ShellIntegration::DefaultWebClientWorker::StartCheckIsDefault() {
observer_->SetDefaultWebClientUIState(STATE_PROCESSING); observer_->SetDefaultWebClientUIState(STATE_PROCESSING);
BrowserThread::PostTask( BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE, BrowserThread::FILE, FROM_HERE,
NewRunnableMethod( base::Bind(
this, &DefaultWebClientWorker::ExecuteCheckIsDefault)); &DefaultWebClientWorker::ExecuteCheckIsDefault, this));
} }
} }
...@@ -91,8 +92,8 @@ void ShellIntegration::DefaultWebClientWorker::StartSetAsDefault() { ...@@ -91,8 +92,8 @@ void ShellIntegration::DefaultWebClientWorker::StartSetAsDefault() {
} }
BrowserThread::PostTask( BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE, BrowserThread::FILE, FROM_HERE,
NewRunnableMethod( base::Bind(
this, &DefaultWebClientWorker::ExecuteSetAsDefault)); &DefaultWebClientWorker::ExecuteSetAsDefault, this));
} }
void ShellIntegration::DefaultWebClientWorker::ObserverDestroyed() { void ShellIntegration::DefaultWebClientWorker::ObserverDestroyed() {
...@@ -110,8 +111,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteCheckIsDefault() { ...@@ -110,8 +111,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteCheckIsDefault() {
DefaultWebClientState state = CheckIsDefault(); DefaultWebClientState state = CheckIsDefault();
BrowserThread::PostTask( BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, BrowserThread::UI, FROM_HERE,
NewRunnableMethod( base::Bind(
this, &DefaultWebClientWorker::CompleteCheckIsDefault, state)); &DefaultWebClientWorker::CompleteCheckIsDefault, this, state));
} }
void ShellIntegration::DefaultWebClientWorker::CompleteCheckIsDefault( void ShellIntegration::DefaultWebClientWorker::CompleteCheckIsDefault(
...@@ -131,8 +132,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteSetAsDefault() { ...@@ -131,8 +132,8 @@ void ShellIntegration::DefaultWebClientWorker::ExecuteSetAsDefault() {
SetAsDefault(); SetAsDefault();
BrowserThread::PostTask( BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, BrowserThread::UI, FROM_HERE,
NewRunnableMethod( base::Bind(
this, &DefaultWebClientWorker::CompleteSetAsDefault)); &DefaultWebClientWorker::CompleteSetAsDefault, this));
} }
void ShellIntegration::DefaultWebClientWorker::CompleteSetAsDefault() { void ShellIntegration::DefaultWebClientWorker::CompleteSetAsDefault() {
......
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