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

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: Review fixes. 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 bbaa405f7e758a54858b28993af9cb0e37f32f5e..08de3062137eee55abcce3bf05eaa50c87dd22e8 100644
--- a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
@@ -482,7 +482,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) {
@@ -503,7 +503,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) {
@@ -538,7 +538,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) {
@@ -553,7 +553,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() {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/register_page_ui.cc ('k') | chrome/browser/ui/webui/chromeos/system_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698