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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc

Issue 1118943005: [chrome/browser/chromeos/extensions] Deprecation of loop proxy usage with TTRH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review nit Created 5 years, 7 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
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698