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

Unified Diff: remoting/host/it2me_desktop_environment.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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/it2me_desktop_environment.h ('k') | remoting/host/linux/audio_pipe_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me_desktop_environment.cc
diff --git a/remoting/host/it2me_desktop_environment.cc b/remoting/host/it2me_desktop_environment.cc
index f2f7cf059f2ba34df0b773a56fb27d5504f3710d..ffe768f02cd1b604ef06ccc067defa3fe1fdfe9e 100644
--- a/remoting/host/it2me_desktop_environment.cc
+++ b/remoting/host/it2me_desktop_environment.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "remoting/host/client_session_control.h"
@@ -84,11 +85,11 @@ It2MeDesktopEnvironmentFactory::It2MeDesktopEnvironmentFactory(
It2MeDesktopEnvironmentFactory::~It2MeDesktopEnvironmentFactory() {}
-scoped_ptr<DesktopEnvironment> It2MeDesktopEnvironmentFactory::Create(
+std::unique_ptr<DesktopEnvironment> It2MeDesktopEnvironmentFactory::Create(
base::WeakPtr<ClientSessionControl> client_session_control) {
DCHECK(caller_task_runner()->BelongsToCurrentThread());
- return make_scoped_ptr(new It2MeDesktopEnvironment(
+ return base::WrapUnique(new It2MeDesktopEnvironment(
caller_task_runner(), video_capture_task_runner(), input_task_runner(),
ui_task_runner(), client_session_control, supports_touch_events()));
}
« no previous file with comments | « remoting/host/it2me_desktop_environment.h ('k') | remoting/host/linux/audio_pipe_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698