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

Issue 10704074: "Paste and go" state was being calculated wrong on views (at least). Fix by making this calculatio… (Closed)

Created:
8 years, 5 months ago by Peter Kasting
Modified:
8 years, 5 months ago
Reviewers:
Elliot Glaysher, sky
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

"Paste and go" state was being calculated wrong on views (at least). Fix by making this calculation stateless. BUG=135202 TEST=Start Chrome, navigate to a URL, copy some non-URL text, right-click the omnibox, and verify "paste and search" is shown. Copy a URL and right-click and verify "paste and go" is shown. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=145931

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -78 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 chunk +7 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 chunks +17 lines, -24 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 3 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 2 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 6 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
sky: all erg: Is the state variable solution I've adopted for GTK correct, or should ...
8 years, 5 months ago (2012-07-03 02:58:52 UTC) #1
Elliot Glaysher
https://chromiumcodereview.appspot.com/10704074/diff/9001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc File chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (right): https://chromiumcodereview.appspot.com/10704074/diff/9001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc#newcode1345 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc:1345: string16 sanitized_text_for_paste_and_go_(text ? Is this supposed to be a ...
8 years, 5 months ago (2012-07-09 16:29:07 UTC) #2
Peter Kasting
https://chromiumcodereview.appspot.com/10704074/diff/9001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc File chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (right): https://chromiumcodereview.appspot.com/10704074/diff/9001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc#newcode1345 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc:1345: string16 sanitized_text_for_paste_and_go_(text ? On 2012/07/09 16:29:08, Elliot Glaysher wrote: ...
8 years, 5 months ago (2012-07-09 17:17:21 UTC) #3
Elliot Glaysher
https://chromiumcodereview.appspot.com/10704074/diff/15001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc File chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (right): https://chromiumcodereview.appspot.com/10704074/diff/15001/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc#newcode1345 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc:1345: sanitized_text_for_paste_and_go_(text ? I suspect that this will not compile, ...
8 years, 5 months ago (2012-07-09 17:28:40 UTC) #4
Peter Kasting
Yeah, fixing... in the meantime just review what the code is supposed to be doing ...
8 years, 5 months ago (2012-07-09 17:32:59 UTC) #5
Elliot Glaysher
gtk lgtm
8 years, 5 months ago (2012-07-09 17:38:57 UTC) #6
Peter Kasting
Since sky is out I'm just going to TBR this. Scott, let me know after ...
8 years, 5 months ago (2012-07-10 19:20:11 UTC) #7
sky
8 years, 5 months ago (2012-07-16 22:36:42 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698