chore: convert session base::Bind instances (#18038)
Convert instances of base::Bind to base::BindOnce and base::BindRepeating as applicable in the session module as well as in Autofill popups.
This commit is contained in:
parent
61effac72a
commit
f316c8470c
4 changed files with 24 additions and 25 deletions
|
@ -22,11 +22,11 @@ class ResolveProxyHelper
|
|||
: public base::RefCountedThreadSafe<ResolveProxyHelper>,
|
||||
network::mojom::ProxyLookupClient {
|
||||
public:
|
||||
using ResolveProxyCallback = base::Callback<void(std::string)>;
|
||||
using ResolveProxyCallback = base::OnceCallback<void(std::string)>;
|
||||
|
||||
explicit ResolveProxyHelper(AtomBrowserContext* browser_context);
|
||||
|
||||
void ResolveProxy(const GURL& url, const ResolveProxyCallback& callback);
|
||||
void ResolveProxy(const GURL& url, ResolveProxyCallback callback);
|
||||
|
||||
protected:
|
||||
~ResolveProxyHelper() override;
|
||||
|
@ -36,7 +36,7 @@ class ResolveProxyHelper
|
|||
// A PendingRequest is a resolve request that is in progress, or queued.
|
||||
struct PendingRequest {
|
||||
public:
|
||||
PendingRequest(const GURL& url, const ResolveProxyCallback& callback);
|
||||
PendingRequest(const GURL& url, ResolveProxyCallback callback);
|
||||
PendingRequest(PendingRequest&& pending_request) noexcept;
|
||||
~PendingRequest();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue