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

Unified Diff: remoting/host/input_injector_win.cc

Issue 1949113005: Fixing an It2Me host crash on debug builds on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_win.cc
diff --git a/remoting/host/input_injector_win.cc b/remoting/host/input_injector_win.cc
index 5278dbe4ab4df8d0f28df2d431c90ceebb322a71..467ff4241b82818b54af6f33c297da04c03cbdf4 100644
--- a/remoting/host/input_injector_win.cc
+++ b/remoting/host/input_injector_win.cc
@@ -201,7 +201,7 @@ class InputInjectorWin : public InputInjector {
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
std::unique_ptr<Clipboard> clipboard_;
- TouchInjectorWin touch_injector_;
+ std::unique_ptr<TouchInjectorWin> touch_injector_;
DISALLOW_COPY_AND_ASSIGN(Core);
};
@@ -315,7 +315,8 @@ void InputInjectorWin::Core::Start(
}
clipboard_->Start(std::move(client_clipboard));
- touch_injector_.Init();
+ touch_injector_.reset(new TouchInjectorWin());
+ touch_injector_->Init();
}
void InputInjectorWin::Core::Stop() {
@@ -325,7 +326,7 @@ void InputInjectorWin::Core::Stop() {
}
clipboard_.reset();
- touch_injector_.Deinitialize();
+ touch_injector_->Deinitialize();
}
InputInjectorWin::Core::~Core() {}
@@ -378,7 +379,8 @@ void InputInjectorWin::Core::HandleMouse(const MouseEvent& event) {
}
void InputInjectorWin::Core::HandleTouch(const TouchEvent& event) {
- touch_injector_.InjectTouchEvent(event);
+ DCHECK(touch_injector_);
+ touch_injector_->InjectTouchEvent(event);
}
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698