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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 10704074: "Paste and go" state was being calculated wrong on views (at least). Fix by making this calculatio… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.h
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_view_win.h (revision 144499)
+++ chrome/browser/ui/views/omnibox/omnibox_view_win.h (working copy)
@@ -145,11 +145,6 @@
// Inserts the text at the specified position.
void InsertText(int position, const string16& text);
- // Invokes CanPasteAndGo with the specified text, and if successful navigates
- // to the appropriate URL. The behavior of this is the same as if the user
- // typed in the specified text and pressed enter.
- void PasteAndGo(const string16& text);
-
void set_force_hidden(bool force_hidden) { force_hidden_ = force_hidden; }
// Called before an accelerator is processed to give us a chance to override
@@ -366,9 +361,6 @@
// Internally invoked whenever the text changes in some way.
void TextChanged();
- // Determines whether the user can "paste and go", given the specified text.
- bool CanPasteAndGo(const string16& text) const;
-
// Getter for the text_object_model_. Note that the pointer returned here is
// only valid as long as the AutocompleteEdit is still alive. Also, if the
// underlying call fails, this may return NULL.
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698