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

Issue 1763273002: base: Remove OwningMRUCache in favor of scoped_ptrs in MRUCache (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tfarina, cbentzel+watch_chromium.org, Matt Giuca, tapted, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Remove OwningMRUCache in favor of scoped_ptrs in MRUCache Along with removing OwningMRUCache, this patch also removes the Deletor concept from the cache, since it can be implemented by storing scoped_ptrs with custom deleters. BUG=592823 Committed: https://crrev.com/aaab4d14f3b0266d774592136a1f097cd75c923c Cr-Commit-Position: refs/heads/master@{#380239}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 14

Patch Set 8 : address comments #

Patch Set 9 : rebase + fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -251 lines) Patch
M base/containers/mru_cache.h View 1 2 3 4 5 6 7 8 chunks +18 lines, -99 lines 0 comments Download
M base/containers/mru_cache_unittest.cc View 1 2 3 4 5 6 7 6 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc View 2 chunks +4 lines, -4 lines 3 comments Download
M chrome/browser/ui/app_list/search/common/webservice_cache.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -14 lines 0 comments Download
M chrome/browser/ui/app_list/search/common/webservice_cache.cc View 1 2 3 4 5 6 7 8 6 chunks +26 lines, -14 lines 0 comments Download
M components/dom_distiller/core/distilled_content_store.h View 2 chunks +4 lines, -5 lines 0 comments Download
M components/dom_distiller/core/distilled_content_store.cc View 4 chunks +8 lines, -6 lines 0 comments Download
M ios/chrome/browser/favicon/large_icon_cache.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/favicon/large_icon_cache.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/snapshots/lru_cache.h View 1 2 3 2 chunks +3 lines, -18 lines 0 comments Download
M ios/chrome/browser/snapshots/lru_cache.mm View 1 2 3 5 chunks +3 lines, -32 lines 0 comments Download
M ios/chrome/browser/snapshots/lru_cache_unittest.mm View 1 2 3 4 2 chunks +0 lines, -24 lines 0 comments Download
M net/ssl/ssl_client_session_cache_openssl.h View 1 chunk +1 line, -5 lines 0 comments Download
M net/ssl/ssl_client_session_cache_openssl.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_manager.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
vmpstr
Please take a look.
4 years, 9 months ago (2016-03-07 21:10:28 UTC) #3
danakj
base LGTM https://codereview.chromium.org/1763273002/diff/110001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1763273002/diff/110001/base/containers/mru_cache.h#newcode215 base/containers/mru_cache.h:215: typedef MRUCacheBase<KeyType, PayloadType, std::less<KeyType>> ParentType; can you ...
4 years, 9 months ago (2016-03-07 21:27:10 UTC) #4
vmpstr
https://codereview.chromium.org/1763273002/diff/110001/base/containers/mru_cache.h File base/containers/mru_cache.h (right): https://codereview.chromium.org/1763273002/diff/110001/base/containers/mru_cache.h#newcode215 base/containers/mru_cache.h:215: typedef MRUCacheBase<KeyType, PayloadType, std::less<KeyType>> ParentType; On 2016/03/07 21:27:10, danakj ...
4 years, 9 months ago (2016-03-07 21:45:33 UTC) #5
vmpstr
+dfalcantara@chromium.org for chrome/browser/bitmap_fetcher/ +benwells@chromium.org for chrome/browser/ui/app_list/ +nyquist@chromium.org for components/dom_distinner/ +droger@chromium.org for ios/chrome/ +agl@chromium.org for net/ ...
4 years, 9 months ago (2016-03-07 21:46:24 UTC) #7
dnicoara
ui/ozone/platform/drm lgtm
4 years, 9 months ago (2016-03-07 21:52:16 UTC) #8
gone
bitmap_fetcher lgtm https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode187 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:187: scoped_ptr<CacheEntry> entry(new CacheEntry); nit: make_scoped_ptr?
4 years, 9 months ago (2016-03-07 22:01:32 UTC) #9
danakj
https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode187 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:187: scoped_ptr<CacheEntry> entry(new CacheEntry); On 2016/03/07 22:01:32, dfalcantara wrote: > ...
4 years, 9 months ago (2016-03-07 22:02:42 UTC) #10
gone
https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc File chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc (right): https://codereview.chromium.org/1763273002/diff/150001/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc#newcode187 chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc:187: scoped_ptr<CacheEntry> entry(new CacheEntry); On 2016/03/07 22:02:42, danakj wrote: > ...
4 years, 9 months ago (2016-03-07 22:03:33 UTC) #11
nyquist
components/dom_distiller lgtm
4 years, 9 months ago (2016-03-08 09:00:20 UTC) #13
droger
lgtm
4 years, 9 months ago (2016-03-08 13:41:56 UTC) #14
vmpstr
Ping for owners, and +more peeps in case owners are busy.
4 years, 9 months ago (2016-03-08 18:52:36 UTC) #16
agl
LGTM for net/
4 years, 9 months ago (2016-03-08 19:13:59 UTC) #17
benwells
On 2016/03/08 18:52:36, vmpstr wrote: > Ping for owners, and +more peeps in case owners ...
4 years, 9 months ago (2016-03-09 02:40:18 UTC) #19
benwells
lgtm
4 years, 9 months ago (2016-03-09 02:54:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763273002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763273002/150001
4 years, 9 months ago (2016-03-09 18:48:14 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/35955)
4 years, 9 months ago (2016-03-09 20:33:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763273002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763273002/150001
4 years, 9 months ago (2016-03-09 20:41:28 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 9 months ago (2016-03-09 22:08:57 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 22:47:51 UTC) #31
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/aaab4d14f3b0266d774592136a1f097cd75c923c
Cr-Commit-Position: refs/heads/master@{#380239}

Powered by Google App Engine
This is Rietveld 408576698