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

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed)

Created:
4 years, 5 months ago by tzik
Modified:
4 years, 5 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-worker-reviews_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, falken, f(malita), fs, gavinp+loader_chromium.org, gyuyoung2, horo+watch_chromium.org, jam, Nate Chapin, jbroman, jchaffraix+rendering, Justin Novosad, kinuko+worker_chromium.org, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, loading-reviews+fetch_chromium.org, mlamouri+watch-content_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, scheduler-bugs_chromium.org, Stephen Chennney, sof, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use std::unique_ptr<> for WebTaskRunner::clone Both Chromium and Blink code can use std::unique_ptr<> recently, so now we can express the ownership passing on the type of WebTaskRunner::clone. This CL replaces the return type of WebTaskRunner::clone from a raw pointer to a std::unique_ptr<>, removes adoptClone, and updates the call-sites. Committed: https://crrev.com/d2a8f72eb23fd377b0713e2061958c6b7ecae38e Cr-Commit-Position: refs/heads/master@{#407178}

Patch Set 1 #

Patch Set 2 : mac fix #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -34 lines) Patch
M components/scheduler/child/web_task_runner_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/child/web_task_runner_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/TimerTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebTaskRunner.h View 1 2 3 3 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
tzik
PTAL to: yukishiino: binding/core/v8/ScriptStreamer.cpp alexclarke: //component/scheduler/child kinuko: //content and core and platform
4 years, 5 months ago (2016-07-15 08:04:30 UTC) #5
haraken
WebKit LGTM
4 years, 5 months ago (2016-07-15 08:07:09 UTC) #6
kinuko
lgtm
4 years, 5 months ago (2016-07-15 08:35:02 UTC) #9
Yuki
LGTM.
4 years, 5 months ago (2016-07-15 09:03:51 UTC) #10
alex clarke (OOO till 29th)
+esprehn Elliot can we somehow bridge chromium and blink reference counting? Ideally I'd like the ...
4 years, 5 months ago (2016-07-15 09:32:57 UTC) #12
tzik
On 2016/07/15 09:32:57, alex clarke wrote: > +esprehn > > Elliot can we somehow bridge ...
4 years, 5 months ago (2016-07-19 12:58:36 UTC) #19
dcheng
On 2016/07/19 12:58:36, tzik wrote: > On 2016/07/15 09:32:57, alex clarke wrote: > > +esprehn ...
4 years, 5 months ago (2016-07-19 13:02:36 UTC) #20
alex clarke (OOO till 29th)
On 2016/07/19 13:02:36, dcheng wrote: > On 2016/07/19 12:58:36, tzik wrote: > > On 2016/07/15 ...
4 years, 5 months ago (2016-07-19 14:10:46 UTC) #21
esprehn
lgtm, much better than bare ptrs. Yeah we need to deal with the RefCounted stuff, ...
4 years, 5 months ago (2016-07-22 05:54:28 UTC) #25
alex clarke (OOO till 29th)
On 2016/07/22 05:54:28, esprehn wrote: > lgtm, much better than bare ptrs. Yeah we need ...
4 years, 5 months ago (2016-07-22 09:35:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2148363004/60001
4 years, 5 months ago (2016-07-22 16:02:07 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-22 17:03:57 UTC) #34
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 17:06:06 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d2a8f72eb23fd377b0713e2061958c6b7ecae38e
Cr-Commit-Position: refs/heads/master@{#407178}

Powered by Google App Engine
This is Rietveld 408576698