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

Unified Diff: ash/wm/sticky_keys.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: ash/wm/sticky_keys.cc
diff --git a/ash/wm/sticky_keys.cc b/ash/wm/sticky_keys.cc
index efdfd160173ab9316b80765344d01778002d0350..c1b14f434d401330d95ddb536c1c478dd457fe57 100644
--- a/ash/wm/sticky_keys.cc
+++ b/ash/wm/sticky_keys.cc
@@ -269,7 +269,7 @@ bool StickyKeysHandler::HandleDisabledState(ui::KeyEvent* event) {
if (preparing_to_enable_) {
preparing_to_enable_ = false;
current_state_ = ENABLED;
- modifier_up_event_.reset(event->Copy());
+ modifier_up_event_.reset(new ui::KeyEvent(*event));
return true;
}
return false;
« no previous file with comments | « no previous file | ash/wm/sticky_keys_unittest.cc » ('j') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698