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

Issue 126103003: Changed RefCountedStaticMemory() to accept a void pointer. (Closed)

Created:
6 years, 11 months ago by João Eiras
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Changed RefCountedStaticMemory() to accept a void pointer. Using a void pointer saves lots of redundant casting. Also added RefCountedMemory front_as<type> which saves typing by not having to wrap each call with a reinterpret_cast<>. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250808

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : formatting, and changed more places to use front_as #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -60 lines) Patch
M base/memory/ref_counted_memory.h View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M base/memory/ref_counted_memory_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/android/dev_tools_server.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/devtools/browser_list_tabcontents_provider.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/local_discovery/privet_http_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/local_discovery/pwg_raster_converter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/search/iframe_source_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/libgtk2ui/app_indicator_icon.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/thumbnail_list_source.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/webui/web_ui_data_source_unittest.cc View 1 2 5 chunks +8 lines, -20 lines 0 comments Download
M ui/base/resource/data_pack.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/resource/resource_bundle_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_data_dll_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/gfx/icon_util.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
João Eiras
This review just adds some bits to RefCountedMemory to make it less verbose to use.
6 years, 11 months ago (2014-01-07 16:58:10 UTC) #1
brettw
Sorry for the delay, I wrote a comment but forgot to push send. https://codereview.chromium.org/126103003/diff/1/base/memory/ref_counted_memory.h File ...
6 years, 11 months ago (2014-01-13 21:52:16 UTC) #2
João Eiras
On 2014/01/13 21:52:16, brettw wrote: > Sorry for the delay, I wrote a comment but ...
6 years, 11 months ago (2014-01-15 15:48:41 UTC) #3
brettw
Sorry for the delay, I was stuck trying to land the build change.
6 years, 11 months ago (2014-01-26 06:44:12 UTC) #4
brettw
I'm no longer as passionate about changing the API as I was before (see? you ...
6 years, 11 months ago (2014-01-26 06:50:06 UTC) #5
João Eiras
On 2014/01/26 06:50:06, brettw wrote: > I'm no longer as passionate about changing the API ...
6 years, 10 months ago (2014-02-11 15:28:04 UTC) #6
brettw
Thanks! LGTM
6 years, 10 months ago (2014-02-11 19:17:54 UTC) #7
João Eiras
Could you please help review the leftover files (everything not in base). Thank you.
6 years, 10 months ago (2014-02-11 20:34:21 UTC) #8
sky
LGTM
6 years, 10 months ago (2014-02-11 22:15:22 UTC) #9
João Eiras
The CQ bit was checked by joaoe@opera.com
6 years, 10 months ago (2014-02-12 11:00:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/126103003/200001
6 years, 10 months ago (2014-02-12 11:01:06 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 11:24:17 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=49784
6 years, 10 months ago (2014-02-12 11:24:19 UTC) #13
Ted C
lgtm - web_contents_delegate_android.cc
6 years, 10 months ago (2014-02-12 17:40:42 UTC) #14
João Eiras
The CQ bit was checked by joaoe@opera.com
6 years, 10 months ago (2014-02-12 18:12:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/126103003/200001
6 years, 10 months ago (2014-02-12 18:13:04 UTC) #16
commit-bot: I haz the power
6 years, 10 months ago (2014-02-12 22:34:10 UTC) #17
Message was sent while issue was closed.
Change committed as 250808

Powered by Google App Engine
This is Rietveld 408576698