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

Unified Diff: content/browser/media/capture/image_capture_impl.cc

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: content/browser/media/capture/image_capture_impl.cc
diff --git a/content/browser/media/capture/image_capture_impl.cc b/content/browser/media/capture/image_capture_impl.cc
index b0c0db22af678ed4160edd9a6d2842ab1816041e..0a250f767ed1036d80036623870529ecf4d1fde0 100644
--- a/content/browser/media/capture/image_capture_impl.cc
+++ b/content/browser/media/capture/image_capture_impl.cc
@@ -17,12 +17,6 @@ namespace content {
namespace {
-template<typename R, typename... Args>
-void RunMojoCallback(const mojo::Callback<R(Args...)>& callback, Args... args) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- callback.Run(std::forward<Args>(args)...);
-}
-
void RunFailedGetCapabilitiesCallback(
const ImageCaptureImpl::GetCapabilitiesCallback& cb) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -38,8 +32,7 @@ void RunTakePhotoCallbackOnUIThread(
mojo::Array<uint8_t> data) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&RunMojoCallback<void, mojo::String, mojo::Array<uint8_t>>,
- callback, mime_type, base::Passed(std::move(data))));
+ base::Bind(callback, mime_type, base::Passed(std::move(data))));
}
void RunFailedTakePhotoCallback(const ImageCaptureImpl::TakePhotoCallback& cb) {
« no previous file with comments | « content/browser/geolocation/geolocation_service_impl.cc ('k') | content/browser/permissions/permission_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698