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

Unified Diff: mojo/shell/task_runners.h

Issue 512063003: Manual fixups for scoped_refptr conversion operator cleanup in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | mojo/shell/task_runners.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/task_runners.h
diff --git a/mojo/shell/task_runners.h b/mojo/shell/task_runners.h
index c2f1be0c009987bf98309abf743be13f007db19a..d5a0cec2e055472a8f79d18c14d9a940d15ff1ab 100644
--- a/mojo/shell/task_runners.h
+++ b/mojo/shell/task_runners.h
@@ -22,7 +22,8 @@ namespace shell {
// process.
class TaskRunners {
public:
- explicit TaskRunners(base::SingleThreadTaskRunner* shell_runner);
+ explicit TaskRunners(
+ const scoped_refptr<base::SingleThreadTaskRunner>& shell_runner);
~TaskRunners();
base::SingleThreadTaskRunner* shell_runner() const {
@@ -30,7 +31,7 @@ class TaskRunners {
}
base::SingleThreadTaskRunner* io_runner() const {
- return io_thread_->message_loop_proxy();
+ return io_thread_->message_loop_proxy().get();
}
base::SequencedWorkerPool* blocking_pool() const {
« no previous file with comments | « no previous file | mojo/shell/task_runners.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698