Chromium Code Reviews

Issue 1428593004: Enable url_formatter::ElideUrl and url_formatter::ElideHost for aura Android (Closed)

Created:
5 years, 1 month ago by bshe
Modified:
5 years, 1 month ago
Reviewers:
palmer, msw, Peter Kasting, mfomitchev
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable url_formatter::ElideUrl and url_formatter::ElideHost for aura Android Aura Android uses text_utils_gfx.cc and GetStringWidthF is implemented in the file. So it is safe to use url_formatter::ElideUrl and url_formatter::ElideHost for aura Android. BUG=507792 Committed: https://crrev.com/cd2dd0a028b2f2efe3f1053eb34091e30e0d1548 Cr-Commit-Position: refs/heads/master@{#358442}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : reviews #

Patch Set 5 : Enable ElideUrl for aura Android #

Total comments: 2

Patch Set 6 : ' #

Patch Set 7 : change gfx::ElideText too #

Total comments: 12

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : refer to bug #

Unified diffs Side-by-side diffs Stats (+31 lines, -29 lines)
M components/url_formatter/BUILD.gn View 3 chunks +5 lines, -4 lines 0 comments
M components/url_formatter/elide_url.h View 2 chunks +2 lines, -2 lines 0 comments
M components/url_formatter/elide_url.cc View 4 chunks +6 lines, -6 lines 0 comments
M components/url_formatter/url_formatter.gyp View 1 chunk +1 line, -1 line 0 comments
M ui/gfx/text_elider.cc View 3 chunks +17 lines, -16 lines 0 comments

Depends on Patchset:

Messages

Total messages: 34 (11 generated)
bshe
Hi Mikhail. Do you mind to take a look at this simple CL? ElideUrl is ...
5 years, 1 month ago (2015-11-02 16:04:36 UTC) #2
mfomitchev
Do you know why ElideUrl doesn't work on Android? Would it be worth using gfx::ElideText ...
5 years, 1 month ago (2015-11-02 19:47:37 UTC) #3
bshe
On 2015/11/02 19:47:37, mfomitchev wrote: > Do you know why ElideUrl doesn't work on Android? ...
5 years, 1 month ago (2015-11-03 14:08:43 UTC) #6
mfomitchev
On 2015/11/03 14:08:43, bshe wrote: > On 2015/11/02 19:47:37, mfomitchev wrote: > > Do you ...
5 years, 1 month ago (2015-11-03 15:46:59 UTC) #8
bshe
On 2015/11/03 15:46:59, mfomitchev wrote: > On 2015/11/03 14:08:43, bshe wrote: > > On 2015/11/02 ...
5 years, 1 month ago (2015-11-03 16:45:35 UTC) #11
mfomitchev
LGTM with a nit >I must go deeper... Just make sure you don't lose your ...
5 years, 1 month ago (2015-11-03 17:03:15 UTC) #12
bshe
Thanks Mikhail. +palmer for OWNER https://codereview.chromium.org/1428593004/diff/140001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/1428593004/diff/140001/components/url_formatter/BUILD.gn#newcode27 components/url_formatter/BUILD.gn:27: deps += [ "//ui/gfx" ...
5 years, 1 month ago (2015-11-03 17:33:59 UTC) #14
bshe
+msw for ui/gfx It looks like we need to do aura check in elide_url.cc too. ...
5 years, 1 month ago (2015-11-03 23:42:16 UTC) #16
msw
https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn#newcode4 components/url_formatter/BUILD.gn:4: import("//build/config/ui.gni") nit: add a blank line above. https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn#newcode27 components/url_formatter/BUILD.gn:27: ...
5 years, 1 month ago (2015-11-03 23:55:33 UTC) #17
palmer
https://codereview.chromium.org/1428593004/diff/180001/ui/gfx/text_elider.cc File ui/gfx/text_elider.cc (right): https://codereview.chromium.org/1428593004/diff/180001/ui/gfx/text_elider.cc#newcode247 ui/gfx/text_elider.cc:247: render_text->set_truncate_length(5000); Is there some kMaxSomethingSomething that this code and ...
5 years, 1 month ago (2015-11-04 00:46:07 UTC) #18
bshe
@msw https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn#newcode4 components/url_formatter/BUILD.gn:4: import("//build/config/ui.gni") On 2015/11/03 23:55:33, msw wrote: > nit: ...
5 years, 1 month ago (2015-11-04 14:38:01 UTC) #19
bshe
@palmer https://codereview.chromium.org/1428593004/diff/180001/ui/gfx/text_elider.cc File ui/gfx/text_elider.cc (right): https://codereview.chromium.org/1428593004/diff/180001/ui/gfx/text_elider.cc#newcode247 ui/gfx/text_elider.cc:247: render_text->set_truncate_length(5000); On 2015/11/04 00:46:07, palmer wrote: > Is ...
5 years, 1 month ago (2015-11-04 14:38:39 UTC) #20
msw
lgtm https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn#newcode28 components/url_formatter/BUILD.gn:28: deps -= [ "//ui/gfx" ] On 2015/11/04 14:38:00, ...
5 years, 1 month ago (2015-11-04 19:16:11 UTC) #21
bshe
https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/1428593004/diff/180001/components/url_formatter/BUILD.gn#newcode28 components/url_formatter/BUILD.gn:28: deps -= [ "//ui/gfx" ] On 2015/11/04 19:16:11, msw ...
5 years, 1 month ago (2015-11-04 22:38:21 UTC) #22
msw
lgtm
5 years, 1 month ago (2015-11-04 22:40:42 UTC) #23
bshe
On 2015/11/04 22:40:42, msw wrote: > lgtm friendly ping palmer@
5 years, 1 month ago (2015-11-06 13:45:21 UTC) #24
palmer
> > You could simply remove this set_truncate_length call to use the underlying > > ...
5 years, 1 month ago (2015-11-06 19:07:54 UTC) #25
bshe
Added reference to the bug. And looks like I need another owner for components/url_formatter +pkasting ...
5 years, 1 month ago (2015-11-06 21:25:33 UTC) #27
Peter Kasting
LGTM
5 years, 1 month ago (2015-11-06 22:15:52 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428593004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428593004/240001
5 years, 1 month ago (2015-11-06 22:44:29 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:240001)
5 years, 1 month ago (2015-11-06 23:21:26 UTC) #32
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/cd2dd0a028b2f2efe3f1053eb34091e30e0d1548 Cr-Commit-Position: refs/heads/master@{#358442}
5 years, 1 month ago (2015-11-06 23:22:21 UTC) #33
bshe
4 years, 11 months ago (2016-01-06 16:24:09 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:240001) has been created in
https://codereview.chromium.org/1562833002/ by bshe@chromium.org.

The reason for reverting is: We dont need to support Aura Android at current
stage. Revert related code..

Powered by Google App Engine