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

Unified Diff: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc

Issue 8113025: base::Bind: More converts, mostly in WebUI. (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
Index: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
index 67ce7354ec162bd2ecd517cc7caf32294c75a972..a1e9849e1396fb23628a1fcb90b1e717c611f0aa 100644
--- a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/string_piece.h"
@@ -474,7 +475,7 @@ void SimUnlockHandler::HandleCancel(const ListValue* args) {
}
scoped_refptr<TaskProxy> task = new TaskProxy(AsWeakPtr());
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(), &TaskProxy::HandleCancel));
+ base::Bind(&TaskProxy::HandleCancel, task.get()));
}
void SimUnlockHandler::HandleChangePinCode(const ListValue* args) {
@@ -495,7 +496,7 @@ void SimUnlockHandler::HandleEnterCode(SimUnlockCode code_type,
const std::string& code) {
scoped_refptr<TaskProxy> task = new TaskProxy(AsWeakPtr(), code, code_type);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(), &TaskProxy::HandleEnterCode));
+ base::Bind(&TaskProxy::HandleEnterCode, task.get()));
}
void SimUnlockHandler::HandleEnterPinCode(const ListValue* args) {
@@ -530,7 +531,7 @@ void SimUnlockHandler::HandleProceedToPukInput(const ListValue* args) {
}
scoped_refptr<TaskProxy> task = new TaskProxy(AsWeakPtr());
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(), &TaskProxy::HandleProceedToPukInput));
+ base::Bind(&TaskProxy::HandleProceedToPukInput, task.get()));
}
void SimUnlockHandler::HandleSimStatusInitialize(const ListValue* args) {
@@ -545,7 +546,7 @@ void SimUnlockHandler::HandleSimStatusInitialize(const ListValue* args) {
VLOG(1) << "Initializing SIM dialog in mode: " << dialog_mode_;
scoped_refptr<TaskProxy> task = new TaskProxy(AsWeakPtr());
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(), &TaskProxy::HandleInitialize));
+ base::Bind(&TaskProxy::HandleInitialize, task.get()));
}
void SimUnlockHandler::InitializeSimStatus() {

Powered by Google App Engine
This is Rietveld 408576698