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

Issue 908033003: Remove dependency from ui/base to cc on non-Android platforms (Closed)

Created:
5 years, 10 months ago by spang
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mohsen, nona+watch_chromium.org, penghuang+watch_chromium.org, James Su, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency from ui/base to cc on non-Android platforms This is needed to resolve a dependency cycle when use_ozone=1: gn gen out_gn_ozone --args='os="chromeos" use_ozone=true' ERROR Dependency cycle: //ui/base:base -> //cc:cc -> //gpu:gpu -> //gpu/command_buffer/service:service -> //ui/gl:gl -> //ui/ozone:ozone -> //ui/ozone/platform/test:test -> //ui/base:base The ui/base -> cc dependency is very small (2 files) and only used for Android builds. We can fix the issue by restricting this dependency to ui/base/android. Two functions in common code needed moving to drop the dependency from non-Android builds. Also add the cc dependency to the gyp build as it's missing there. BUG=445627 TEST=built android chrome_shell_apk (both gyp & gn) gn gen out_gn_ozone --args='os="chromeos" use_ozone=true is_component_build=true' && ninja -C out_gn_ozone chrome ozone_unittests (last one!) Committed: https://crrev.com/ce336f674e224d9cbde5a5acc97f104fc888ae30 Cr-Commit-Position: refs/heads/master@{#316687}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -37 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 2 chunks +28 lines, -2 lines 0 comments Download
M ui/base/BUILD.gn View 2 chunks +4 lines, -2 lines 1 comment Download
M ui/base/DEPS View 1 chunk +0 lines, -2 lines 0 comments Download
A ui/base/android/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/touch/selection_bound.h View 2 chunks +1 line, -5 lines 0 comments Download
M ui/base/touch/selection_bound.cc View 1 chunk +1 line, -26 lines 0 comments Download
M ui/base/ui_base.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
spang
This is the last change needed to make our GN build work again. thakis: ui/ ...
5 years, 10 months ago (2015-02-10 02:38:27 UTC) #2
Nico
Looks like the dep from ui/base on cc comes from https://codereview.chromium.org/281003002 Dana, can we make ...
5 years, 10 months ago (2015-02-10 02:48:32 UTC) #4
spang
On 2015/02/10 02:48:32, Nico wrote: > Looks like the dep from ui/base on cc comes ...
5 years, 10 months ago (2015-02-10 02:54:00 UTC) #5
danakj
It would be fine with me for sure. We just need to move some code ...
5 years, 10 months ago (2015-02-10 17:59:03 UTC) #6
aelias_OOO_until_Jul13
I don't have any real strong opinion about what directory that code should live in ...
5 years, 10 months ago (2015-02-10 20:40:08 UTC) #8
Jaekyun Seok (inactive)
It seems good to move the files to ui/android, but maybe David and Jared want ...
5 years, 10 months ago (2015-02-10 21:33:09 UTC) #10
jdduke (slow)
This looks fine. At some point other platforms will require the cc -> ui conversion ...
5 years, 10 months ago (2015-02-10 22:07:27 UTC) #11
David Trainor- moved to gerrit
On 2015/02/10 22:07:27, jdduke wrote: > This looks fine. At some point other platforms will ...
5 years, 10 months ago (2015-02-11 01:00:07 UTC) #12
spang
On 2015/02/10 20:40:08, aelias wrote: > I don't have any real strong opinion about what ...
5 years, 10 months ago (2015-02-12 21:15:21 UTC) #13
spang
On 2015/02/12 21:15:21, spang wrote: > On 2015/02/10 20:40:08, aelias wrote: > > I don't ...
5 years, 10 months ago (2015-02-15 20:31:26 UTC) #14
Nico
I think this can land as is, but I'd really like ui_base to not depend ...
5 years, 10 months ago (2015-02-15 22:11:57 UTC) #15
aelias_OOO_until_Jul13
OK, lgtm. I filed http://crbug.com/458889 so we don't forget about it.
5 years, 10 months ago (2015-02-16 02:26:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/908033003/1
5 years, 10 months ago (2015-02-17 20:03:09 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/2506)
5 years, 10 months ago (2015-02-17 21:44:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/908033003/1
5 years, 10 months ago (2015-02-17 22:02:29 UTC) #22
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-17 22:53:45 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 22:54:18 UTC) #24
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ce336f674e224d9cbde5a5acc97f104fc888ae30
Cr-Commit-Position: refs/heads/master@{#316687}

Powered by Google App Engine
This is Rietveld 408576698