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

Issue 7806001: Makes copying text in the omnibox always use permanent text is the (Closed)

Created:
9 years, 3 months ago by sky
Modified:
9 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Visibility:
Public.

Description

Makes copying text in the omnibox always use permanent text is the user hasn't modified the url. I'll add a test case if you like this. BUG=94126 TEST=see bug R=pkasting@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98983

Patch Set 1 #

Patch Set 2 : Use Classify #

Total comments: 2

Patch Set 3 : Incorporate feedback and add test #

Total comments: 1

Patch Set 4 : Add another test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -32 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 2 chunks +14 lines, -24 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_unittest.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sky
9 years, 3 months ago (2011-08-30 00:11:23 UTC) #1
Peter Kasting
No, this isn't what I meant, although this would eliminate some instances of the bug. ...
9 years, 3 months ago (2011-08-30 01:05:57 UTC) #2
sky
On 2011/08/30 01:05:57, Peter Kasting wrote: > No, this isn't what I meant, although this ...
9 years, 3 months ago (2011-08-30 17:33:31 UTC) #3
Peter Kasting
On 2011/08/30 17:33:31, sky wrote: > I'm not using > classify for the all selected ...
9 years, 3 months ago (2011-08-30 18:26:29 UTC) #4
Peter Kasting
Can we add some tests for this somehow? I'd really like to see this have ...
9 years, 3 months ago (2011-08-30 21:30:52 UTC) #5
sky
Updated. -Scott
9 years, 3 months ago (2011-08-30 22:40:22 UTC) #6
Peter Kasting
Can we also test the case of a permanent URL of "http://www.google.com/search?..." and an input ...
9 years, 3 months ago (2011-08-30 23:04:05 UTC) #7
sky
On Tue, Aug 30, 2011 at 4:04 PM, <pkasting@chromium.org> wrote: > Can we also test ...
9 years, 3 months ago (2011-08-30 23:58:33 UTC) #8
Peter Kasting
9 years, 3 months ago (2011-08-31 00:00:19 UTC) #9
On 2011/08/30 23:58:33, sky wrote:
> It's caught by this case:
> 
>   if (!user_input_in_progress() && is_all_selected) {
>     // The user selected all the text and has not edited it. Use the url as
the
>     // text so that if the scheme was stripped it's added back, and the url
>     // is unescaped (we escape parts of the url for display).
>     *url = PermanentURL();
>     *text = UTF8ToUTF16(url->spec());
>     *write_url = true;
>     return;
>   }
> 
> As long as you haven't modified the text and everything is selected,
> then you'll get http:// .

Ah... then maybe the comment on that should say "Unmodified URLs shouldn't get a
scheme added regardless of how they'd be classified".

LGTM

Powered by Google App Engine
This is Rietveld 408576698