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

Unified Diff: components/printing/test/print_mock_render_thread.h

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
Index: components/printing/test/print_mock_render_thread.h
diff --git a/components/printing/test/print_mock_render_thread.h b/components/printing/test/print_mock_render_thread.h
index fdec4b289251d5aea1af953aff5b4b6485e9e838..a5efe2ed4706bc943ff57dda2593dd7c9de4102f 100644
--- a/components/printing/test/print_mock_render_thread.h
+++ b/components/printing/test/print_mock_render_thread.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/single_thread_task_runner.h"
#include "content/public/test/mock_render_thread.h"
namespace base {
@@ -36,7 +37,7 @@ class PrintMockRenderThread : public content::MockRenderThread {
// Set IO message loop proxy.
void set_io_message_loop_proxy(
- const scoped_refptr<base::MessageLoopProxy>& proxy);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
#if defined(ENABLE_PRINTING)
// Returns the pseudo-printer instance.
@@ -101,7 +102,7 @@ class PrintMockRenderThread : public content::MockRenderThread {
int print_preview_pages_remaining_;
#endif
- scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
DISALLOW_COPY_AND_ASSIGN(PrintMockRenderThread);
};
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | components/printing/test/print_mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698