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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 15782010: Update remoting/ and jingle/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host_context.cc
diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
index 2f394ac948195a5ee5630e9ec64639b9cf8098b2..0d51f85e82f422e83e45896f1c12bf402d1d5698 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -51,14 +51,13 @@ scoped_ptr<ChromotingHostContext> ChromotingHostContext::Create(
DCHECK(ui_task_runner->BelongsToCurrentThread());
scoped_ptr<ChromotingHostContext> context(
- new ChromotingHostContext(ui_task_runner));
- if (!context->audio_task_runner_ ||
- !context->file_task_runner_ ||
- !context->input_task_runner_ ||
- !context->network_task_runner_ ||
- !context->video_capture_task_runner_ ||
- !context->video_encode_task_runner_ ||
- !context->url_request_context_getter_) {
+ new ChromotingHostContext(ui_task_runner.get()));
+ if (!context->audio_task_runner_.get() || !context->file_task_runner_.get() ||
+ !context->input_task_runner_.get() ||
+ !context->network_task_runner_.get() ||
+ !context->video_capture_task_runner_.get() ||
+ !context->video_encode_task_runner_.get() ||
+ !context->url_request_context_getter_.get()) {
context.reset();
}
« no previous file with comments | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698