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

Unified Diff: mojo/examples/browser/browser.cc

Issue 346863002: Remove <enter> hack that is no longer needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/browser/browser.cc
diff --git a/mojo/examples/browser/browser.cc b/mojo/examples/browser/browser.cc
index f784c0d8a6fe10cd6a4b10aff636809d46b272ec..99426f8fa4572cfb95d67a6a93e6c42ff2c1a84a 100644
--- a/mojo/examples/browser/browser.cc
+++ b/mojo/examples/browser/browser.cc
@@ -111,16 +111,6 @@ class Browser : public Application,
return false;
}
- virtual void ContentsChanged(views::Textfield* sender,
- const base::string16& new_contents) OVERRIDE {
- // Ghetto workaround for crbug.com/386256.
- if (EndsWith(new_contents, base::ASCIIToUTF16("]"), false)) {
- sender->SetText(new_contents.substr(0, new_contents.size() - 1));
- HandleKeyEvent(sender, ui::KeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_RETURN,
- 0, false));
- }
- }
-
scoped_ptr<ViewsInit> views_init_;
view_manager::ViewManager* view_manager_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698