Index: chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc |
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc b/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc |
index fa3a346a7086ac97d8d0ac46da7b9817fc6cb423..b21ea43bdf992bb3d17b736f2deb0fccca6e903b 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc |
+++ b/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc |
@@ -10,6 +10,7 @@ |
#include "base/bind.h" |
#include "base/files/scoped_temp_dir.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "chrome/browser/extensions/extension_apitest.h" |
#include "chrome/browser/extensions/extension_function_test_utils.h" |
@@ -101,10 +102,11 @@ class MockFileSelector : public file_manager::FileSelector { |
// Send response to the extension function. |
// The callback will take a reference to the function and keep it alive. |
- base::MessageLoopProxy::current()->PostTask(FROM_HERE, |
- base::Bind(&FileBrowserHandlerInternalSelectFileFunction:: |
- OnFilePathSelected, |
- function, success_, selected_path_)); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, |
+ base::Bind( |
+ &FileBrowserHandlerInternalSelectFileFunction::OnFilePathSelected, |
+ function, success_, selected_path_)); |
delete this; |
} |