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

Unified Diff: chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc

Issue 2827853003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/media_galleries (Closed)
Patch Set: Created 3 years, 8 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 | chrome/browser/media_galleries/fileapi/media_file_system_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc
diff --git a/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc b/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc
index ac8357f436ed115d52ae884dc3d9ef916cade525..aa186067a59c63799496040ccc9e5dfb203685f4 100644
--- a/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc
+++ b/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc
@@ -23,7 +23,7 @@ void PostResultToUIThread(storage_monitor::StorageInfo::Type type,
device_id = storage_monitor::StorageInfo::MakeDeviceId(type, unique_id);
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
- base::Bind(callback, device_id));
+ base::BindOnce(callback, device_id));
}
} // namespace
@@ -36,9 +36,8 @@ void FindIAppsOnFileThread(storage_monitor::StorageInfo::Type type,
DCHECK(!callback.is_null());
content::BrowserThread::PostTask(
- content::BrowserThread::FILE,
- FROM_HERE,
- base::Bind(task, base::Bind(PostResultToUIThread, type, callback)));
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(task, base::Bind(PostResultToUIThread, type, callback)));
}
// iTunes is only support on OSX and Windows.
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/media_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698