| Index: chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| index 63b27c876cf7e0fe630a62f31db4b3e90905d6ad..4f88819dbc045685526a1bd3a96a9a5baf5fadae 100644
|
| --- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| +++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| @@ -746,8 +746,9 @@ void BookmarksIOFunction::SelectFile(ui::SelectFileDialog::Type type) {
|
| // GetDefaultFilepathForBookmarkExport() might have to touch the filesystem
|
| // (stat or access, for example), so this requires a thread with IO allowed.
|
| if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) {
|
| - BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
|
| - base::Bind(&BookmarksIOFunction::SelectFile, this, type));
|
| + BrowserThread::PostTask(
|
| + BrowserThread::FILE, FROM_HERE,
|
| + base::BindOnce(&BookmarksIOFunction::SelectFile, this, type));
|
| return;
|
| }
|
|
|
| @@ -760,9 +761,10 @@ void BookmarksIOFunction::SelectFile(ui::SelectFileDialog::Type type) {
|
| DCHECK(type == ui::SelectFileDialog::SELECT_OPEN_FILE);
|
|
|
| // After getting the |default_path|, ask the UI to display the file dialog.
|
| - BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
| - base::Bind(&BookmarksIOFunction::ShowSelectFileDialog, this,
|
| - type, default_path));
|
| + BrowserThread::PostTask(
|
| + BrowserThread::UI, FROM_HERE,
|
| + base::BindOnce(&BookmarksIOFunction::ShowSelectFileDialog, this, type,
|
| + default_path));
|
| }
|
|
|
| void BookmarksIOFunction::ShowSelectFileDialog(
|
|
|