Commit 3fb7d854 authored by Makoto Shimazu's avatar Makoto Shimazu Committed by Commit Bot

Convert base::Bind to base::Bind{Once,Repeating} in content/browser

This CL converts base::Bind to BindOnce or BindRepeating, and also changes
relevant base::Callbacks or base::Closures to appropriate types.

This CL is split from https://crrev.com/c/1831621.

This CL was uploaded by git cl split.

R=wolenetz@chromium.org

Bug: 1007760
Change-Id: Iae662b1ee6021c4c0332df55b3775348309df4bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849484
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: default avatarMatthew Wolenetz <wolenetz@chromium.org>
Auto-Submit: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704965}
parent 55d9f732
...@@ -118,14 +118,14 @@ class SeatbeltExtensionTokenProviderImpl ...@@ -118,14 +118,14 @@ class SeatbeltExtensionTokenProviderImpl
MediaInterfaceProxy::MediaInterfaceProxy( MediaInterfaceProxy::MediaInterfaceProxy(
RenderFrameHost* render_frame_host, RenderFrameHost* render_frame_host,
media::mojom::InterfaceFactoryRequest request, media::mojom::InterfaceFactoryRequest request,
const base::Closure& error_handler) base::OnceClosure error_handler)
: render_frame_host_(render_frame_host), : render_frame_host_(render_frame_host),
binding_(this, std::move(request)) { binding_(this, std::move(request)) {
DVLOG(1) << __func__; DVLOG(1) << __func__;
DCHECK(render_frame_host_); DCHECK(render_frame_host_);
DCHECK(!error_handler.is_null()); DCHECK(!error_handler.is_null());
binding_.set_connection_error_handler(error_handler); binding_.set_connection_error_handler(std::move(error_handler));
// |interface_factory_ptr_| and |cdm_factory_map_| will be lazily // |interface_factory_ptr_| and |cdm_factory_map_| will be lazily
// connected in GetMediaInterfaceFactory() and GetCdmFactory(). // connected in GetMediaInterfaceFactory() and GetCdmFactory().
......
...@@ -44,7 +44,7 @@ class MediaInterfaceProxy : public media::mojom::InterfaceFactory { ...@@ -44,7 +44,7 @@ class MediaInterfaceProxy : public media::mojom::InterfaceFactory {
// called, which could destroy |this|. // called, which could destroy |this|.
MediaInterfaceProxy(RenderFrameHost* render_frame_host, MediaInterfaceProxy(RenderFrameHost* render_frame_host,
media::mojom::InterfaceFactoryRequest request, media::mojom::InterfaceFactoryRequest request,
const base::Closure& error_handler); base::OnceClosure error_handler);
~MediaInterfaceProxy() final; ~MediaInterfaceProxy() final;
// media::mojom::InterfaceFactory implementation. // media::mojom::InterfaceFactory implementation.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment