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

Unified Diff: remoting/base/auto_thread.cc

Issue 719353002: Remove implicit conversions from scoped_refptr to T* in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread.cc
diff --git a/remoting/base/auto_thread.cc b/remoting/base/auto_thread.cc
index b1d02790e4f655b0bfd8a531c54723b570d83eef..2e5006be3143a291091bde897736bb150686dde7 100644
--- a/remoting/base/auto_thread.cc
+++ b/remoting/base/auto_thread.cc
@@ -77,11 +77,11 @@ scoped_refptr<AutoThreadTaskRunner> AutoThread::CreateWithLoopAndComInitTypes(
scoped_refptr<AutoThreadTaskRunner> joiner,
base::MessageLoop::Type loop_type,
ComInitType com_init_type) {
- AutoThread* thread = new AutoThread(name, joiner);
+ AutoThread* thread = new AutoThread(name, joiner.get());
Wez 2014/11/12 23:57:03 This should stay as |joiner|.
dcheng 2014/11/12 23:59:07 The constructor takes a raw pointer though, so thi
Wez 2014/11/13 00:18:39 I'd prefer we just switch the ctor to take a refpt
dcheng 2014/11/13 00:25:24 Previously, I was converting a lot of these by han
thread->SetComInitType(com_init_type);
scoped_refptr<AutoThreadTaskRunner> task_runner =
thread->StartWithType(loop_type);
- if (!task_runner)
+ if (!task_runner.get())
delete thread;
return task_runner;
}
« no previous file with comments | « no previous file | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698