chore: make util::Promise a move-only type (#17071)
This commit is contained in:
parent
a40d826b11
commit
32a4de4a68
29 changed files with 325 additions and 260 deletions
|
@ -19,7 +19,7 @@ class GURL;
|
|||
|
||||
namespace platform_util {
|
||||
|
||||
typedef base::Callback<void(const std::string&)> OpenExternalCallback;
|
||||
typedef base::OnceCallback<void(const std::string&)> OpenExternalCallback;
|
||||
|
||||
// Show the given file in a file manager. If possible, select the file.
|
||||
// Must be called from the UI thread.
|
||||
|
@ -52,7 +52,7 @@ void OpenExternal(
|
|||
const GURL& url,
|
||||
#endif
|
||||
const OpenExternalOptions& options,
|
||||
const OpenExternalCallback& callback);
|
||||
OpenExternalCallback callback);
|
||||
|
||||
// Move a file to trash.
|
||||
bool MoveItemToTrash(const base::FilePath& full_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue