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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.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
« no previous file with comments | « ash/wm/sticky_keys_unittest.cc ('k') | content/browser/renderer_host/native_web_keyboard_event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 15e9a028867d27f88d00753024ab04bbd2f70fcb..c8c91afc5695bf066c711242062dd30b96d52aff 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1694,11 +1694,11 @@ void AutofillDialogViews::ContentsChanged(views::Textfield* sender,
bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender,
const ui::KeyEvent& key_event) {
- scoped_ptr<ui::KeyEvent> copy(key_event.Copy());
+ ui::KeyEvent copy(key_event);
#if defined(OS_WIN) && !defined(USE_AURA)
Evan Stade 2013/12/02 19:16:39 Q: when can we get rid of this?
sadrul 2013/12/02 19:21:29 My best guess is sometime after win-aura goes stab
- content::NativeWebKeyboardEvent event(copy->native_event());
+ content::NativeWebKeyboardEvent event(copy.native_event());
#else
- content::NativeWebKeyboardEvent event(copy.get());
+ content::NativeWebKeyboardEvent event(&copy);
#endif
return delegate_->HandleKeyPressEventInInput(event);
}
« no previous file with comments | « ash/wm/sticky_keys_unittest.cc ('k') | content/browser/renderer_host/native_web_keyboard_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698