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

Unified Diff: remoting/host/event_executor_linux.cc

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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/event_executor.h ('k') | remoting/host/event_executor_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index f2e68b85004f682ee59b3e6a579229fc13aa692a..7295c1ae26c4d154cf6c5ea91cef1fd28f51a6f0 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -426,14 +426,14 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent& event) {
} // namespace
-EventExecutor* EventExecutor::Create(MessageLoop* message_loop,
- Capturer* capturer) {
- EventExecutorLinux* executor = new EventExecutorLinux(message_loop, capturer);
+scoped_ptr<protocol::InputStub> EventExecutor::Create(MessageLoop* message_loop,
+ Capturer* capturer) {
+ scoped_ptr<EventExecutorLinux> executor(
+ new EventExecutorLinux(message_loop, capturer));
if (!executor->Init()) {
- delete executor;
- executor = NULL;
+ executor.reset(NULL);
}
- return executor;
+ return executor.PassAs<protocol::InputStub>();
}
} // namespace remoting
« no previous file with comments | « remoting/host/event_executor.h ('k') | remoting/host/event_executor_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698