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

Unified Diff: remoting/host/fake_desktop_environment.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | remoting/host/fake_host_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_desktop_environment.cc
diff --git a/remoting/host/fake_desktop_environment.cc b/remoting/host/fake_desktop_environment.cc
index d2faf911e6602f6cff1bc8d1134e6c44a48c9ff3..1158e27561d234f27784d213d404ff6bf575959f 100644
--- a/remoting/host/fake_desktop_environment.cc
+++ b/remoting/host/fake_desktop_environment.cc
@@ -69,7 +69,7 @@ std::unique_ptr<InputInjector> FakeDesktopEnvironment::CreateInputInjector() {
}
std::unique_ptr<ScreenControls> FakeDesktopEnvironment::CreateScreenControls() {
- return base::WrapUnique(new FakeScreenControls());
+ return base::MakeUnique<FakeScreenControls>();
}
std::unique_ptr<webrtc::DesktopCapturer>
@@ -83,7 +83,7 @@ FakeDesktopEnvironment::CreateVideoCapturer() {
std::unique_ptr<webrtc::MouseCursorMonitor>
FakeDesktopEnvironment::CreateMouseCursorMonitor() {
- return base::WrapUnique(new FakeMouseCursorMonitor());
+ return base::MakeUnique<FakeMouseCursorMonitor>();
}
std::string FakeDesktopEnvironment::GetCapabilities() const {
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | remoting/host/fake_host_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698