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

Issue 1275903003: Service Worker: Stop using a scoped_ptr for an object to be released immediately. (Closed)

Created:
5 years, 4 months ago by jungkees
Modified:
5 years, 4 months ago
CC:
chromium-reviews, horo, jam, kinuko+serviceworker, kinuko+watch, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Worker: Stop using a scoped_ptr for an object to be released immediately. The original code of the callers of WebCallbacks::onError/onSuccess methods addressed by this CL create a scoped_ptr and immediately release it to pass a raw pointer to method. This CL changes it to directly use a raw pointer. Related comment from nhiroki@: https://codereview.chromium.org/1270513002/diff/20001/content/child/service_worker/service_worker_dispatcher.cc#newcode562 BUG=N/A Committed: https://crrev.com/bdcc0660980f5eb4e0bf09000cc6e75e699c5759 Cr-Commit-Position: refs/heads/master@{#342804}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -16 lines) Patch
M content/child/service_worker/service_worker_dispatcher.cc View 7 chunks +8 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
jungkees
I've tried to remove unnecessary creation/use of scoped_ptr objects in service_worker_dispatcher.cc. PTAL.
5 years, 4 months ago (2015-08-10 07:08:57 UTC) #2
zino
On 2015/08/10 07:08:57, jungkees wrote: > I've tried to remove unnecessary creation/use of scoped_ptr objects ...
5 years, 4 months ago (2015-08-11 06:47:44 UTC) #3
jungkees
Thanks for the peer review, zino@. PTAL.
5 years, 4 months ago (2015-08-11 06:52:38 UTC) #5
nhiroki
Thank you for working on this. LGTM nit: The CL subject could be a bit ...
5 years, 4 months ago (2015-08-11 07:42:17 UTC) #6
jungkees
Fair point! Thanks for the comment.
5 years, 4 months ago (2015-08-11 08:03:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275903003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275903003/1
5 years, 4 months ago (2015-08-11 08:22:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275903003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275903003/1
5 years, 4 months ago (2015-08-11 09:13:36 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-11 10:22:00 UTC) #13
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 10:22:43 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bdcc0660980f5eb4e0bf09000cc6e75e699c5759
Cr-Commit-Position: refs/heads/master@{#342804}

Powered by Google App Engine
This is Rietveld 408576698