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

Issue 755643004: Replace SystemUIResourceManager with ResourceManager (Closed)

Created:
6 years ago by Jaekyun Seok (inactive)
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Replace SystemUIResourceManager with ResourceManager And move UIResourceClientAndroid and UIResourceProvider under ui/android. BUG=426939 Committed: https://crrev.com/f229b81b8d31706d3aa922294d1e9c8f567bd400 Cr-Commit-Position: refs/heads/master@{#307844}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Add unittest #

Total comments: 3

Patch Set 3 : Remove SystemUIResourceManager #

Total comments: 4

Patch Set 4 : Apply Jared's comments #

Total comments: 10

Patch Set 5 : Apply Jared's comments #

Total comments: 5

Patch Set 6 : Add TODO #

Patch Set 7 : Fix clang build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -945 lines) Patch
M build/all.gyp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/gtest_config.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.h View 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_store.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_store.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/android/content_view_render_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/android/edge_effect.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/android/edge_effect.cc View 1 2 3 5 chunks +11 lines, -10 lines 0 comments Download
M content/browser/android/edge_effect_l.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/android/edge_effect_l.cc View 1 2 3 4 4 chunks +8 lines, -7 lines 0 comments Download
M content/browser/android/overscroll_controller_android.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/android/overscroll_refresh.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/overscroll_refresh.cc View 1 2 3 4 6 chunks +12 lines, -13 lines 0 comments Download
M content/browser/android/overscroll_refresh_unittest.cc View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
D content/browser/android/system_ui_resource_manager_impl.h View 1 chunk +0 lines, -57 lines 0 comments Download
D content/browser/android/system_ui_resource_manager_impl.cc View 1 chunk +0 lines, -207 lines 0 comments Download
D content/browser/android/system_ui_resource_manager_impl_unittest.cc View 1 chunk +0 lines, -166 lines 0 comments Download
D content/browser/android/ui_resource_provider_impl.h View 1 chunk +0 lines, -55 lines 0 comments Download
D content/browser/android/ui_resource_provider_impl.cc View 1 chunk +0 lines, -72 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 5 chunks +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M content/content_jni.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D content/public/android/java/res/drawable-hdpi/refresh_blue.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-hdpi/refresh_gray.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-mdpi/refresh_blue.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-mdpi/refresh_gray.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xhdpi/refresh_blue.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xhdpi/refresh_gray.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xxhdpi/refresh_blue.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xxhdpi/refresh_gray.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xxxhdpi/refresh_blue.png View Binary file 0 comments Download
D content/public/android/java/res/drawable-xxxhdpi/refresh_gray.png View Binary file 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/UIResources.java View 1 chunk +0 lines, -84 lines 0 comments Download
M content/public/browser/android/compositor.h View 3 chunks +3 lines, -3 lines 0 comments Download
D content/public/browser/android/ui_resource_client_android.h View 1 chunk +0 lines, -30 lines 0 comments Download
D content/public/browser/android/ui_resource_provider.h View 1 chunk +0 lines, -29 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 2 chunks +30 lines, -0 lines 0 comments Download
M ui/android/DEPS View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
A + ui/android/java/res/drawable-hdpi/refresh_blue.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-hdpi/refresh_gray.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-mdpi/refresh_blue.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-mdpi/refresh_gray.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xhdpi/refresh_blue.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xhdpi/refresh_gray.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xxhdpi/refresh_blue.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xxhdpi/refresh_gray.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xxxhdpi/refresh_blue.png View Binary file 0 comments Download
A + ui/android/java/res/drawable-xxxhdpi/refresh_gray.png View Binary file 0 comments Download
M ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java View 1 2 3 4 3 chunks +11 lines, -1 line 0 comments Download
M ui/android/resources/resource_manager.h View 1 2 3 4 5 4 chunks +18 lines, -7 lines 0 comments Download
M ui/android/resources/resource_manager.cc View 1 2 3 6 chunks +25 lines, -7 lines 0 comments Download
A + ui/android/resources/resource_manager_unittest.cc View 1 2 3 7 chunks +40 lines, -47 lines 0 comments Download
M ui/android/resources/ui_resource_android.h View 2 chunks +8 lines, -8 lines 0 comments Download
M ui/android/resources/ui_resource_android.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + ui/android/resources/ui_resource_client_android.h View 2 chunks +7 lines, -9 lines 0 comments Download
A ui/android/resources/ui_resource_provider.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A ui/android/resources/ui_resource_provider.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A + ui/android/run_all_unittests.cc View 1 3 chunks +9 lines, -21 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 4 5 6 3 chunks +37 lines, -1 line 0 comments Download
M ui/base/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D ui/base/android/system_ui_resource_manager.h View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M ui/base/android/window_android_compositor.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 36 (6 generated)
Jaekyun Seok (inactive)
Jared and David, could you please review this CL which replaces SystemUIResourceManagerImpl with ResourceManager? Thanks,
6 years ago (2014-12-08 07:29:31 UTC) #2
jdduke (slow)
https://codereview.chromium.org/755643004/diff/1/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/755643004/diff/1/content/browser/android/content_view_render_view.cc#newcode20 content/browser/android/content_view_render_view.cc:20: #include "ui/android/resources/ui_resource_provider.h" Do we even need this include? https://codereview.chromium.org/755643004/diff/1/content/browser/android/system_ui_resource_manager_impl_unittest.cc ...
6 years ago (2014-12-08 16:23:13 UTC) #3
Jaekyun Seok (inactive)
PTAL. https://codereview.chromium.org/755643004/diff/1/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/755643004/diff/1/content/browser/android/content_view_render_view.cc#newcode20 content/browser/android/content_view_render_view.cc:20: #include "ui/android/resources/ui_resource_provider.h" On 2014/12/08 16:23:13, jdduke wrote: > ...
6 years ago (2014-12-09 11:42:36 UTC) #4
jdduke (slow)
https://codereview.chromium.org/755643004/diff/1/ui/android/resources/resource_manager.cc File ui/android/resources/resource_manager.cc (right): https://codereview.chromium.org/755643004/diff/1/ui/android/resources/resource_manager.cc#newcode77 ui/android/resources/resource_manager.cc:77: if (!resource || !resource->ui_resource) On 2014/12/09 11:42:35, Jaekyun Seok ...
6 years ago (2014-12-09 16:11:07 UTC) #5
Jaekyun Seok (inactive)
PTAL. I removed SystemUIResourceManager, and modified unittest not to return null from GetResource. https://codereview.chromium.org/755643004/diff/1/ui/android/resources/resource_manager.cc File ...
6 years ago (2014-12-09 23:35:22 UTC) #6
jdduke (slow)
Thanks, this is shaping up to be a really nice cleanup. https://codereview.chromium.org/755643004/diff/40001/ui/android/resources/resource_manager.h File ui/android/resources/resource_manager.h (right): ...
6 years ago (2014-12-10 01:46:41 UTC) #7
Jaekyun Seok (inactive)
PTAL. https://codereview.chromium.org/755643004/diff/40001/ui/android/resources/resource_manager.h File ui/android/resources/resource_manager.h (right): https://codereview.chromium.org/755643004/diff/40001/ui/android/resources/resource_manager.h#newcode57 ui/android/resources/resource_manager.h:57: virtual void PreloadResource(ui::SystemUIResourceType type); On 2014/12/10 01:46:41, jdduke ...
6 years ago (2014-12-10 02:25:41 UTC) #8
Jaekyun Seok (inactive)
I removed the log to grab resources by string.
6 years ago (2014-12-10 02:28:32 UTC) #9
Jaekyun Seok (inactive)
On 2014/12/10 02:28:32, Jaekyun Seok wrote: > I removed the log to grab resources by ...
6 years ago (2014-12-10 02:28:57 UTC) #10
jdduke (slow)
I'm not an owner for most of this, but in general this lgtm. I'll let ...
6 years ago (2014-12-10 19:19:27 UTC) #11
Jaekyun Seok (inactive)
https://codereview.chromium.org/755643004/diff/60001/content/browser/android/edge_effect_l.cc File content/browser/android/edge_effect_l.cc (right): https://codereview.chromium.org/755643004/diff/60001/content/browser/android/edge_effect_l.cc#newcode238 content/browser/android/edge_effect_l.cc:238: ui::ANDROID_RESOURCE_TYPE_SYSTEM, kResourceType)); On 2014/12/10 19:19:27, jdduke wrote: > Hmm, ...
6 years ago (2014-12-10 21:42:38 UTC) #12
Jaekyun Seok (inactive)
sievers@chromium.org: Please review changes in content/. avi@chromium.org: Please review changes in content/ and ui/. cjhopman@chromium.org: ...
6 years ago (2014-12-10 22:01:06 UTC) #14
jdduke (slow)
https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py File build/android/pylib/gtest/gtest_config.py (right): https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py#newcode39 build/android/pylib/gtest/gtest_config.py:39: 'ui_base_unittests', I believe there might also be a recipe ...
6 years ago (2014-12-10 22:08:08 UTC) #15
Avi (use Gerrit)
lgtm stampity stamp
6 years ago (2014-12-10 22:13:07 UTC) #16
cjhopman
build/ lgtm
6 years ago (2014-12-10 22:13:38 UTC) #17
jdduke (slow)
https://codereview.chromium.org/755643004/diff/80001/content/browser/android/overscroll_refresh_unittest.cc File content/browser/android/overscroll_refresh_unittest.cc (right): https://codereview.chromium.org/755643004/diff/80001/content/browser/android/overscroll_refresh_unittest.cc#newcode33 content/browser/android/overscroll_refresh_unittest.cc:33: // ResoruceManager implementation. I missed this change, hmm... Either ...
6 years ago (2014-12-10 22:19:47 UTC) #18
jdduke (slow)
https://codereview.chromium.org/755643004/diff/80001/ui/android/resources/resource_manager.h File ui/android/resources/resource_manager.h (right): https://codereview.chromium.org/755643004/diff/80001/ui/android/resources/resource_manager.h#newcode35 ui/android/resources/resource_manager.h:35: class UI_ANDROID_EXPORT ResourceManager { Per discussion offline, this change ...
6 years ago (2014-12-10 22:33:26 UTC) #19
Jaekyun Seok (inactive)
https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py File build/android/pylib/gtest/gtest_config.py (right): https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py#newcode39 build/android/pylib/gtest/gtest_config.py:39: 'ui_base_unittests', On 2014/12/10 22:08:08, jdduke wrote: > I believe ...
6 years ago (2014-12-10 22:49:12 UTC) #20
cjhopman
On 2014/12/10 22:49:12, Jaekyun Seok wrote: > https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py > File build/android/pylib/gtest/gtest_config.py (right): > > https://codereview.chromium.org/755643004/diff/80001/build/android/pylib/gtest/gtest_config.py#newcode39 ...
6 years ago (2014-12-10 22:56:23 UTC) #21
Jaekyun Seok (inactive)
Dana, could you please review ui/android/DEPS as an owner of cc/?
6 years ago (2014-12-10 22:57:45 UTC) #23
David Trainor- moved to gerrit
I'm good with the overall structure. As long as jdduke@ is okay with it as ...
6 years ago (2014-12-10 23:03:59 UTC) #24
danakj
On 2014/12/10 22:57:45, Jaekyun Seok wrote: > Dana, could you please review ui/android/DEPS as an ...
6 years ago (2014-12-10 23:06:32 UTC) #25
Jaekyun Seok (inactive)
On 2014/12/10 23:06:32, danakj wrote: > On 2014/12/10 22:57:45, Jaekyun Seok wrote: > > Dana, ...
6 years ago (2014-12-10 23:15:53 UTC) #26
Jaekyun Seok (inactive)
On 2014/12/10 22:56:23, cjhopman wrote: > I expect you will still need to edit a ...
6 years ago (2014-12-10 23:35:20 UTC) #27
danakj
On 2014/12/10 22:57:45, Jaekyun Seok wrote: > Dana, could you please review ui/android/DEPS as an ...
6 years ago (2014-12-10 23:38:50 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755643004/100001
6 years ago (2014-12-10 23:44:32 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/29759)
6 years ago (2014-12-11 00:24:50 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755643004/120001
6 years ago (2014-12-11 01:00:24 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years ago (2014-12-11 02:49:23 UTC) #35
commit-bot: I haz the power
6 years ago (2014-12-11 02:50:03 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f229b81b8d31706d3aa922294d1e9c8f567bd400
Cr-Commit-Position: refs/heads/master@{#307844}

Powered by Google App Engine
This is Rietveld 408576698