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

Unified Diff: chrome/browser/shell_integration.cc

Issue 8335004: Change NewRunnableMethod to base::Bind in shell_integration.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration.cc
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index bcd5d6fb105311827be019980b23c6f457de1c7a..461e49ffda13797f7b1b21afbdb88efdb62fbbac 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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698