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

Unified Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc

Issue 8960010: base::Bind: Convert NewRunnableMethod in chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix 55. Created 9 years 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 | « chrome/browser/ui/webui/chrome_url_data_manager.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc
index 421006a9727274f9431fc7ca8ec75494685f8cd4..88013709882af3912754d63ffb872f4da0455e90 100644
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc
@@ -258,9 +258,8 @@ void BurnManager::OnConfigFileDownloadedOnFileThread() {
scoped_refptr<BurnManagerTaskProxy> task = new BurnManagerTaskProxy();
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(),
- &BurnManagerTaskProxy::ConfigFileFetched, success,
- config_file_content));
+ base::Bind(&BurnManagerTaskProxy::ConfigFileFetched, task.get(), success,
+ config_file_content));
}
void BurnManager::ModelChanged() {
@@ -403,9 +402,8 @@ void Downloader::DownloadFile(const GURL& url,
scoped_refptr<DownloaderTaskProxy> task = new DownloaderTaskProxy();
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(task.get(),
- &DownloaderTaskProxy::CreateFileStream, url, file_path,
- tab_contents));
+ base::Bind(&DownloaderTaskProxy::CreateFileStream, task.get(), url,
+ file_path, tab_contents));
}
void Downloader::CreateFileStreamOnFileThread(
@@ -426,9 +424,8 @@ void Downloader::CreateFileStreamOnFileThread(
// Call callback method on UI thread.
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(task.get(),
- &DownloaderTaskProxy::OnFileStreamCreated,
- url, file_path, tab_contents, file_stream.release()));
+ base::Bind(&DownloaderTaskProxy::OnFileStreamCreated, task.get(),
+ url, file_path, tab_contents, file_stream.release()));
}
void Downloader::OnFileStreamCreatedOnUIThread(const GURL& url,
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698