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

Issue 1803263002: base: Make RefCountedBytes::TakeVector return ref ptr instead of raw ptr (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
Reviewers:
danakj, Nico
CC:
chromium-reviews, sadrul, gavinp+memory_chromium.org, derat+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

base: Make RefCountedBytes::TakeVector return ref ptr instead of raw ptr This patch changes RefCountedBytes::TakeVector to return a ref ptr instead of a raw pointer. This minimizes the changes of a leak if a caller forgets to delete it, or forgets to wrap it in a ref ptr. R=danakj@chromium.org, thakis@chromium.org TBR=thakis@chromium.org BUG=595163 Committed: https://crrev.com/219dc045a6270ee0563460417e04a95f48ee71dd Cr-Commit-Position: refs/heads/master@{#381512}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -27 lines) Patch
M base/memory/ref_counted_memory.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/memory/ref_counted_memory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/privet_http_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/printing/print_preview_data_service.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_preview_data_service.cc View 1 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/x/selection_requestor.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
vmpstr
Please take a look.
4 years, 9 months ago (2016-03-16 00:28:30 UTC) #3
danakj
LGTM
4 years, 9 months ago (2016-03-16 00:31:33 UTC) #4
vmpstr
TBRing thakis@ for owners
4 years, 9 months ago (2016-03-16 16:39:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803263002/20001
4 years, 9 months ago (2016-03-16 16:40:19 UTC) #8
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/39118)
4 years, 9 months ago (2016-03-16 17:01:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803263002/40001
4 years, 9 months ago (2016-03-16 17:32:25 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-16 19:38:43 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/219dc045a6270ee0563460417e04a95f48ee71dd Cr-Commit-Position: refs/heads/master@{#381512}
4 years, 9 months ago (2016-03-16 19:39:45 UTC) #17
Nico
4 years, 9 months ago (2016-03-18 21:25:36 UTC) #18
Message was sent while issue was closed.
lgtm, nice!

Powered by Google App Engine
This is Rietveld 408576698