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

Side by Side Diff: remoting/host/win/host_service.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file implements the Windows service controlling Me2Me host processes 5 // This file implements the Windows service controlling Me2Me host processes
6 // running within user sessions. 6 // running within user sessions.
7 7
8 #include "remoting/host/win/host_service.h" 8 #include "remoting/host/win/host_service.h"
9 9
10 #include <sddl.h> 10 #include <sddl.h>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 i = next; 199 i = next;
200 } 200 }
201 } 201 }
202 202
203 void HostService::CreateLauncher( 203 void HostService::CreateLauncher(
204 scoped_refptr<AutoThreadTaskRunner> task_runner) { 204 scoped_refptr<AutoThreadTaskRunner> task_runner) {
205 // Launch the I/O thread. 205 // Launch the I/O thread.
206 scoped_refptr<AutoThreadTaskRunner> io_task_runner = 206 scoped_refptr<AutoThreadTaskRunner> io_task_runner =
207 AutoThread::CreateWithType( 207 AutoThread::CreateWithType(
208 kIoThreadName, task_runner, base::MessageLoop::TYPE_IO); 208 kIoThreadName, task_runner, base::MessageLoop::TYPE_IO);
209 if (!io_task_runner) { 209 if (!io_task_runner.get()) {
210 LOG(FATAL) << "Failed to start the I/O thread"; 210 LOG(FATAL) << "Failed to start the I/O thread";
211 return; 211 return;
212 } 212 }
213 213
214 daemon_process_ = DaemonProcess::Create( 214 daemon_process_ = DaemonProcess::Create(
215 task_runner, 215 task_runner,
216 io_task_runner, 216 io_task_runner,
217 base::Bind(&HostService::StopDaemonProcess, weak_ptr_)); 217 base::Bind(&HostService::StopDaemonProcess, weak_ptr_));
218 } 218 }
219 219
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 int DaemonProcessMain() { 434 int DaemonProcessMain() {
435 HostService* service = HostService::GetInstance(); 435 HostService* service = HostService::GetInstance();
436 if (!service->InitWithCommandLine(base::CommandLine::ForCurrentProcess())) { 436 if (!service->InitWithCommandLine(base::CommandLine::ForCurrentProcess())) {
437 return kUsageExitCode; 437 return kUsageExitCode;
438 } 438 }
439 439
440 return service->Run(); 440 return service->Run();
441 } 441 }
442 442
443 } // namespace remoting 443 } // namespace remoting
OLDNEW
« remoting/base/auto_thread.cc ('K') | « remoting/host/setup/win/auth_code_getter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698