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

Issue 143463006: Remove net dependency from ui/gfx (Closed)

Created:
6 years, 11 months ago by jamesr
Modified:
6 years, 10 months ago
Reviewers:
tfarina, sky
CC:
chromium-reviews, tfarina, Ben Goodger (Google)
Visibility:
Public.

Description

Remove net dependency from ui/gfx ui/gfx/ depended on net/ for two things, SortedDisplayURL and gfx::ElideUrl(). SortedDisplayURL was not used by anything other than its own unit test and is deleted in this patch. ElideUrl() is only used from chrome/browser/ui/(gtk|cocoa|views), so this patch moves the functionality up to chrome/browser/ui/elide_url.(h|cc) and the unit test to chrome/browser/ui/tests/elide_url_unittest.cc. R=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247820

Patch Set 1 #

Patch Set 2 : also drop url deps #

Total comments: 1

Patch Set 3 : exclude elide_url.cc and tests from the android build #

Total comments: 2

Patch Set 4 : address nits, include android pylib filter changes #

Patch Set 5 : add gurl include to elide_url_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+560 lines, -599 lines) Patch
M build/android/pylib/gtest/filter/ui_unittests_disabled View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/status_bubble_mac.mm View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
A chrome/browser/ui/elide_url.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/elide_url.cc View 1 2 3 1 chunk +267 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/status_bubble_gtk.cc View 2 chunks +3 lines, -2 lines 0 comments Download
A chrome/browser/ui/tests/elide_url_unittest.cc View 1 2 3 4 1 chunk +164 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/gfx.gyp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/text_elider.h View 3 chunks +1 line, -54 lines 0 comments Download
M ui/gfx/text_elider.cc View 1 4 chunks +0 lines, -321 lines 0 comments Download
M ui/gfx/text_elider_unittest.cc View 1 2 3 13 chunks +69 lines, -195 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jamesr
6 years, 11 months ago (2014-01-21 21:34:41 UTC) #1
sky
Nice, LGTM
6 years, 11 months ago (2014-01-21 21:41:48 UTC) #2
tfarina
Ben and I like this, for sure! ;_) Thanks for doing this James!
6 years, 11 months ago (2014-01-21 23:08:14 UTC) #3
tfarina
https://codereview.chromium.org/143463006/diff/30001/chrome/browser/ui/tests/elide_url_unittest.cc File chrome/browser/ui/tests/elide_url_unittest.cc (right): https://codereview.chromium.org/143463006/diff/30001/chrome/browser/ui/tests/elide_url_unittest.cc#newcode1 chrome/browser/ui/tests/elide_url_unittest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 11 months ago (2014-01-21 23:09:47 UTC) #4
jamesr
On 2014/01/21 23:09:47, tfarina wrote: > https://codereview.chromium.org/143463006/diff/30001/chrome/browser/ui/tests/elide_url_unittest.cc > File chrome/browser/ui/tests/elide_url_unittest.cc (right): > > https://codereview.chromium.org/143463006/diff/30001/chrome/browser/ui/tests/elide_url_unittest.cc#newcode1 > ...
6 years, 11 months ago (2014-01-21 23:10:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/143463006/30001
6 years, 11 months ago (2014-01-22 21:13:21 UTC) #6
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 11 months ago (2014-01-23 03:53:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/143463006/30001
6 years, 11 months ago (2014-01-24 00:13:42 UTC) #8
jamesr
On 2014/01/24 07:15:35, I haz the power (commit-bot) wrote: > The commit queue went berserk ...
6 years, 11 months ago (2014-01-24 18:38:10 UTC) #10
tfarina
James, in the mean time, would you put a separate CL to remove SortedDisplayURL()?
6 years, 11 months ago (2014-01-25 23:11:28 UTC) #11
jamesr
The issue is these tests are disabled in a very surprising way on android. I'll ...
6 years, 10 months ago (2014-01-28 19:11:26 UTC) #12
sky
Maybe they should be in their own file and the file not compiled on android? ...
6 years, 10 months ago (2014-01-28 21:57:40 UTC) #13
jamesr
This excludes the chrome/browser/ui/elide_url.cc and test from the android build via gyp instead of having ...
6 years, 10 months ago (2014-01-28 23:27:43 UTC) #14
sky
Nice, LGTM https://codereview.chromium.org/143463006/diff/610001/chrome/browser/ui/elide_url.h File chrome/browser/ui/elide_url.h (right): https://codereview.chromium.org/143463006/diff/610001/chrome/browser/ui/elide_url.h#newcode33 chrome/browser/ui/elide_url.h:33: base::string16 ElideUrl(const GURL& url, nit: forward declare ...
6 years, 10 months ago (2014-01-29 04:02:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/143463006/630001
6 years, 10 months ago (2014-01-29 19:05:04 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=218101
6 years, 10 months ago (2014-01-29 19:41:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/143463006/650001
6 years, 10 months ago (2014-01-29 20:48:01 UTC) #18
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=144311
6 years, 10 months ago (2014-01-29 22:04:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/143463006/650001
6 years, 10 months ago (2014-01-29 22:43:20 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 03:37:37 UTC) #21
Message was sent while issue was closed.
Change committed as 247820

Powered by Google App Engine
This is Rietveld 408576698