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

Issue 1761002: Tweaks to copy/paste of omnibox on windows: (Closed)

Created:
10 years, 8 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Tweaks to copy/paste of omnibox on windows: . Makes copy prefix the text with http if the user hasn't edited the text, and the scheme is http but the text doesn't include http. . Makes copying use the url as the text if the user hasn't edited the text and it's http/https. . Makes control-insert/shift-insert use our copy/paste. BUG=41639 41489 41493 TEST=make sure copy/paste from the omnibox work sanely. Seriously though, see the three bugs for specifics. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45667

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review feedback #

Total comments: 5

Patch Set 3 : Added test, updated comments. #

Patch Set 4 : Updated comments #

Total comments: 3

Patch Set 5 : Updated comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -31 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.h View 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 2 3 4 3 chunks +41 lines, -0 lines 1 comment Download
A chrome/browser/autocomplete/autocomplete_edit_unittest.cc View 3 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 chunks +17 lines, -31 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
sky
10 years, 8 months ago (2010-04-21 22:38:02 UTC) #1
Peter Kasting
http://codereview.chromium.org/1761002/diff/1/2 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/1761002/diff/1/2#newcode1170 chrome/browser/autocomplete/autocomplete_edit_view_win.cc:1170: void AutocompleteEditViewWin::OnCopy() { The modified logic in here isn't ...
10 years, 8 months ago (2010-04-21 22:52:04 UTC) #2
sky
I believe I've addressed all your concerns. I'm keeping this as one patch given I ...
10 years, 8 months ago (2010-04-22 04:28:47 UTC) #3
Peter Kasting
LGTM with one substantive comment, and: can this be unittested? It's subtle and edgy and ...
10 years, 8 months ago (2010-04-22 20:03:40 UTC) #4
sky
I've added a test that exercises the new method directly. I considered writing a browsertest ...
10 years, 8 months ago (2010-04-26 19:36:00 UTC) #5
Peter Kasting
LGTM http://codereview.chromium.org/1761002/diff/14001/15001 File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/1761002/diff/14001/15001#newcode194 chrome/browser/autocomplete/autocomplete_edit.cc:194: // entire host and the user hasn't edited ...
10 years, 8 months ago (2010-04-26 20:10:27 UTC) #6
sky
http://codereview.chromium.org/1761002/diff/14001/15003 File chrome/browser/autocomplete/autocomplete_edit_unittest.cc (right): http://codereview.chromium.org/1761002/diff/14001/15003#newcode113 chrome/browser/autocomplete/autocomplete_edit_unittest.cc:113: for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input); ++i) ...
10 years, 8 months ago (2010-04-26 21:24:01 UTC) #7
Evan Stade
10 years, 8 months ago (2010-04-26 23:52:33 UTC) #8
http://codereview.chromium.org/1761002/diff/18002/23001
File chrome/browser/autocomplete/autocomplete_edit.cc (right):

http://codereview.chromium.org/1761002/diff/18002/23001#newcode186
chrome/browser/autocomplete/autocomplete_edit.cc:186: if
(!user_input_in_progress() && is_all_selected) {
comment here about no unescaping? otherwise this code seems subtle.

Powered by Google App Engine
This is Rietveld 408576698