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

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: . 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 492f874d8a95bd68434ad603adc1ae9b7bfa17b2..85bb244fca12cfeced9a86dbbc7110ed30ad3956 100644
--- a/ui/base/ime/input_method_ibus.cc
+++ b/ui/base/ime/input_method_ibus.cc
@@ -132,7 +132,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