Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: ui/shell_dialogs/select_file_dialog_win.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/shell_dialogs/select_file_dialog_win.cc
diff --git a/ui/shell_dialogs/select_file_dialog_win.cc b/ui/shell_dialogs/select_file_dialog_win.cc
index 9e4fd48c692d78ee261ee52009370db566c1a7bd..1574f88d341dab10d9e89c67cc1fcf2ee1436f8e 100644
--- a/ui/shell_dialogs/select_file_dialog_win.cc
+++ b/ui/shell_dialogs/select_file_dialog_win.cc
@@ -17,6 +17,7 @@
#include "base/i18n/case_conversion.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "base/win/registry.h"
#include "base/win/scoped_comptr.h"
@@ -333,10 +334,9 @@ void SelectFileDialogImpl::SelectFileImpl(
default_path, file_types, file_type_index,
default_extension, BeginRun(owner),
owner, params);
- execute_params.run_state.dialog_thread->message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&SelectFileDialogImpl::ExecuteSelectFile, this,
- execute_params));
+ execute_params.run_state.dialog_thread->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SelectFileDialogImpl::ExecuteSelectFile, this,
+ execute_params));
}
bool SelectFileDialogImpl::HasMultipleFileTypeChoicesImpl() {
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | ui/views/controls/menu/menu_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698