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

Unified Diff: ui/base/ime/input_method_ibus.cc

Issue 97963002: events: Remove KeyEvent::Copy(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-win Created 7 years 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
Index: ui/base/ime/input_method_ibus.cc
diff --git a/ui/base/ime/input_method_ibus.cc b/ui/base/ime/input_method_ibus.cc
index 198d55b567aa540183aa439716cc54dd3c76f9e5..ef3864a612d11212003174287573b115d5c04aa2 100644
--- a/ui/base/ime/input_method_ibus.cc
+++ b/ui/base/ime/input_method_ibus.cc
@@ -175,7 +175,7 @@ bool InputMethodIBus::DispatchKeyEvent(const ui::KeyEvent& event) {
pending_key_events_.insert(current_keyevent_id_);
- ui::KeyEvent* copied_event = event.Copy();
+ ui::KeyEvent* copied_event = new ui::KeyEvent(event);
GetEngine()->ProcessKeyEvent(
event,
base::Bind(&InputMethodIBus::ProcessKeyEventDone,

Powered by Google App Engine
This is Rietveld 408576698