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

Unified Diff: remoting/host/input_injector.h

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/host_window_proxy.cc ('k') | remoting/host/input_injector_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector.h
diff --git a/remoting/host/input_injector.h b/remoting/host/input_injector.h
index 99a7ddee4693e46d4afd48971f5580f6ef2ab379..20169c491bfd9b927734404f0ed57a938877ff4e 100644
--- a/remoting/host/input_injector.h
+++ b/remoting/host/input_injector.h
@@ -5,8 +5,9 @@
#ifndef REMOTING_HOST_INPUT_INJECTOR_H_
#define REMOTING_HOST_INPUT_INJECTOR_H_
+#include <memory>
+
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/input_stub.h"
@@ -24,7 +25,7 @@ class InputInjector : public protocol::ClipboardStub,
// object should do as much work as possible on |main_task_runner|,
// using |ui_task_runner| only for tasks actually requiring a UI
// thread.
- static scoped_ptr<InputInjector> Create(
+ static std::unique_ptr<InputInjector> Create(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
@@ -34,7 +35,7 @@ class InputInjector : public protocol::ClipboardStub,
// Initialises any objects needed to execute events.
virtual void Start(
- scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0;
+ std::unique_ptr<protocol::ClipboardStub> client_clipboard) = 0;
};
} // namespace remoting
« no previous file with comments | « remoting/host/host_window_proxy.cc ('k') | remoting/host/input_injector_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698