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

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: 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
« 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..b5a166e8bdb8c5a7bcf7ba012cee7d3e5c432567 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1694,7 +1694,7 @@ 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());
+ scoped_ptr<ui::KeyEvent> copy(new ui::KeyEvent(key_event));
Evan Stade 2013/12/02 18:17:33 no need to make this a scoped_ptr now.
sadrul 2013/12/02 18:29:58 Done.
#if defined(OS_WIN) && !defined(USE_AURA)
content::NativeWebKeyboardEvent event(copy->native_event());
#else
« 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