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

Side by Side Diff: remoting/host/desktop_session_win.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/disconnect_window_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "remoting/host/desktop_session_win.h" 5 #include "remoting/host/desktop_session_win.h"
6 6
7 #include <sddl.h> 7 #include <sddl.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 } // namespace 482 } // namespace
483 483
484 // static 484 // static
485 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForConsole( 485 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForConsole(
486 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 486 scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
487 scoped_refptr<AutoThreadTaskRunner> io_task_runner, 487 scoped_refptr<AutoThreadTaskRunner> io_task_runner,
488 DaemonProcess* daemon_process, 488 DaemonProcess* daemon_process,
489 int id, 489 int id,
490 const ScreenResolution& resolution) { 490 const ScreenResolution& resolution) {
491 return base::WrapUnique(new ConsoleSession(caller_task_runner, io_task_runner, 491 return base::MakeUnique<ConsoleSession>(caller_task_runner, io_task_runner,
492 daemon_process, id, 492 daemon_process, id,
493 HostService::GetInstance())); 493 HostService::GetInstance());
494 } 494 }
495 495
496 // static 496 // static
497 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForVirtualTerminal( 497 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForVirtualTerminal(
498 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 498 scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
499 scoped_refptr<AutoThreadTaskRunner> io_task_runner, 499 scoped_refptr<AutoThreadTaskRunner> io_task_runner,
500 DaemonProcess* daemon_process, 500 DaemonProcess* daemon_process,
501 int id, 501 int id,
502 const ScreenResolution& resolution) { 502 const ScreenResolution& resolution) {
503 std::unique_ptr<RdpSession> session( 503 std::unique_ptr<RdpSession> session(
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 exploded.hour, 716 exploded.hour,
717 exploded.minute, 717 exploded.minute,
718 exploded.second, 718 exploded.second,
719 exploded.millisecond, 719 exploded.millisecond,
720 passed.c_str()); 720 passed.c_str());
721 721
722 last_timestamp_ = now; 722 last_timestamp_ = now;
723 } 723 }
724 724
725 } // namespace remoting 725 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/disconnect_window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698