diff --git a/atom/browser/api/atom_api_cookies.cc b/atom/browser/api/atom_api_cookies.cc index a34555d50fa5..6adff0110cba 100644 --- a/atom/browser/api/atom_api_cookies.cc +++ b/atom/browser/api/atom_api_cookies.cc @@ -195,7 +195,7 @@ void RemoveCookieOnIO(scoped_refptr getter, const std::string& name, scoped_refptr promise) { GetCookieStore(getter)->DeleteCookieAsync( - url, name, base::BindOnce(ResolvePromiseInUI, promise)); + url, name, base::BindOnce(ResolvePromiseInUI, std::move(promise))); } // Resolves/rejects the |promise| in UI thread. @@ -219,7 +219,7 @@ void FlushCookieStoreOnIOThread( scoped_refptr getter, scoped_refptr promise) { GetCookieStore(getter)->FlushStore( - base::BindOnce(ResolvePromiseInUI, promise)); + base::BindOnce(ResolvePromiseInUI, std::move(promise))); } // Sets cookie with |details| in IO thread.